flutter

Set width and height of a button in Flutter

You can use the code examples explained in this post to set the width and height of a button widget in Flutter.

ElevatedButtonTheme(
  minWidth: 200.0,
  height: 100.0,
  child: ElevatedButton(
    onPressed: () {},
    child: Text("test"),
  ),
);
Was this helpful?