Answers for "button size in flutter"

0

elevated button size flutter

ElevatedButton(
    style: ElevatedButton.styleFrom(
    minimumSize: const Size(200, 50),
    maximumSize: const Size(200, 50),
    ),
onPressed: () {},
child: Text('ElevatedButton')),
Posted by: Guest on September-08-2021
1

how to increase button size in fltter

ButtonTheme(
  minWidth: 200.0,
  height: 100.0,
  child: RaisedButton(
    onPressed: () {},
    child: Text("test"),
  ),
);
Posted by: Guest on April-27-2020
0

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),
     ),
 ),
Posted by: Guest on September-24-2020

Browse Popular Code Answers by Language