Flutter expansionTile title padding
1,915
Please try below snipppet
ExpansionTile(title: Row(children: [
// Icon View,
// SizedBox of desired width,
// Text View
]),
children: ... ,)
If you want to remove padding out side your view Set ExpantionTile tile padding to zero
ExpansionTile(tilePadding: EdgeInsets.zero,
title: Row(children: [
// Icon View,
// SizedBox of desired width,
// Text View
]),
children: ... ,)
Author by
Mr. ZeroOne
Updated on December 25, 2022Comments
-
Mr. ZeroOne over 1 year
-
pskink over 3 yearstried wrapping
leading
withSizedBox
/ConstrainedBox
? -
Mr. ZeroOne over 3 yearsYes. not worked.
-
pskink over 3 yearsseems you cannot make it smaller than _minLeadingWidth
-
-
petras J over 2 yearsTilePadding: EdgeInsets.zero is a working solution. Thank you