Reduce top and bottom space ListTile flutter

dense:true is used for smaller text and packs things in smaller space

contentPadding is used for handling space between ListTile border and other widgets like title, subtitle, and leading The default is 16.0 but here we will set it to 0.0:


   title: Text("Your title"),
   subtitle: Text("subtitle",
    style: TextStyle(fontSize: 12.0),),
    contentPadding: EdgeInsets.symmetric(vertical: 0.0, horizontal: 


Leave a Comment