I am developing an app in Flutter with Dart and am generally finding layout quite straightforward. However, I am running into a problem which I think is related to default padd
Also, the ButtonBar itself has a buttonPadding
attribute that you can customize.
Overrides the surrounding ButtonThemeData.padding to define the padding for a button's child (typically the button's label).
If null then it will use the surrounding ButtonBarTheme.buttonPadding. If that is null, it will default to 8.0 logical pixels on the left and right.
ButtonBar(
buttonPadding: EdgeInsets.all(0),
children: [
FlatButton(
child: Text('Hello'),
onPressed: () => print(),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
],
),