button flutter size code example
Example 1: raisedbutton full width flutter
FractionallySizedBox(
widthFactor: 1, // means 100%, you can change this to 0.8 (80%)
child: RaisedButton.icon(
onPressed: () {
print(comment);
},
label: Text('Edit Comment', style: TextStyle(color: Colors.white)),
icon: Icon(Icons.check, color: Colors.white),
),
),
Example 2: how to increase button size in fltter
ButtonTheme(
minWidth: 200.0,
height: 100.0,
child: RaisedButton(
onPressed: () {},
child: Text("test"),
),
);