Question : elevated button size flutter
Answered by : mahesh-jamdade
ElevatedButton( style: ElevatedButton.styleFrom( minimumSize: const Size(200, 50), maximumSize: const Size(200, 50), ),
onPressed: () {},
child: Text('ElevatedButton')),
Source : | Last Update : Wed, 15 Sep 21
Question : elevatedbutton size flutter
Answered by : you
ElevatedButton( onPressed: () { // Logic to be executed when the button is pressed }, style: ButtonStyle( // Set the fixed size of the button fixedSize: MaterialStateProperty.all(Size(200, 50)), // Alternatively, set the minimum size of the button // minimumSize: MaterialStateProperty.all(Size(200, 50)), ), child: Text('ElevatedButton'),
)
Source : | Last Update : Tue, 19 Sep 23
Question : flutter elevatedbutton width
Answered by : you
SizedBox( width: 200, // Replace with your desired width child: ElevatedButton( onPressed: () { // Add the button's onPressed event handler print('Button pressed!'); }, child: Text('My Button'), ),
)
Source : | Last Update : Tue, 19 Sep 23
Question : elevatedbutton height flutter
Answered by : you
SizedBox( height: 50, // specify the desired height here child: ElevatedButton( onPressed: () { // button logic goes here }, child: Text('Button'), ),
)
Source : | Last Update : Mon, 18 Sep 23