Answers for "how to define height width for elevatedbutton in flutter"

0

how to change the height of elevated button fluttter

ElevatedButton(
   style: ElevatedButton.styleFrom(
     minimumSize: Size(150, 48), // takes postional arguments as width and height
   ),
 ),
              
              OR
   // Wrap the ElevatedButton inside a SizedBox or a Container and set your with and height
Posted by: Guest on July-19-2021
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

Code answers related to "how to define height width for elevatedbutton in flutter"

Browse Popular Code Answers by Language