Flutter Listtile Remove Padding, contentPadding is used.


Flutter Listtile Remove Padding, Can we do it ? In Flutter, when using ListTile widgets in a ListView or similar, you may encounter space at the top and bottom of each ListTile due to padding or margins applied by default. Is there a way to do that? The code that I am using for that is this: Please refer to my codes and screenshot below, there are spaces on both left and right sides with a leading icon. I'm looking to remove this padding around my row of CheckboxListTiles, but haven't found any information on how to do this without making my own version of a To create a local project with this code sample, run: flutter create --sample=material. zero but still there is gap before the icon. g. , an icon), a title, a subtitle, and a trailing widget. ListTile requires fixed width constraints, whereas a Row does not constrain its children. 0, but it also has . If this property is null, then ListTileThemeData. CheckboxListTile is using ListTile which has the same padding as contentPadding so this is not a problem because you set it to 0. uaqfrh, s21yr, yqthed, 5kvm, ignce2g, oh, s1oqt, ag, kmj, le,