Reputation: 7856
I have a column with 3 rows, How I can remove space between rows?
This is my code:
Widget _buildTable() {
return Column(
children: [
Row(
children: _getBtns(),
),
Row(
children: _getBtns(),
),
Row(
children: _getBtns(),
),
]);
}
List<Widget> _getBtns() {
final result = <Widget>[];
for (int i = 0; i < 7; i++) {
result.add(
Expanded(
child: RaisedButton(color: Colors.green, onPressed: () {}),
),
);
}
return result;
}
This is what i would like to get:
Upvotes: 4
Views: 3278
Reputation: 29468
Set materialTapTargetSize
child: RaisedButton(color: Colors.green, onPressed: () {}, materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,),
Upvotes: 5