Make A Button Full Width in Flutter

Use the SizedBox widget, which enforces the child to match its parent size:

  child: new RaisedButton(...),

Using the width or height it only limits the streching in particular axis:

  width: double.infinity,
  child: RaisedButton(...),

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.