xxxxxxxxxx
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
xxxxxxxxxx
ElevatedButton(
style: ButtonStyle(
fixedSize: MaterialStateProperty.all<Size>(
Size(double.infinity, desiredHeight),
),
),
onPressed: () {
// handle button press
},
child: Text('Button'),
)
xxxxxxxxxx
SizedBox(
height: 50, // specify the desired height here
child: ElevatedButton(
onPressed: () {
// button logic goes here
},
child: Text('Button'),
),
)