title: Vertically aligned FlatButtons in Alert Dialog?
body: <p>I want to display an AlertDialog in Flutter with 3 buttons, but vertically aligned as the text of the buttons takes up too much space. So far I only get them displayed horizontally. Any idea how to solve it? The solutions from this post (<a href="https://stackoverflow.com/questions/53844052/how-to-make-an-alertdialog-in-flutter">How to make an AlertDialog in Flutter?</a>) didn't work for me, still shown horizontally.</p>
  
  <pre><code>  static Future&lt;void&gt; showLogoutAllDevicesOrOnlyThisDialog(
        BuildContext context) {
      var b1 = FlatButton(
        textColor: Colors.red,
        child: Text('Only on this device'),
        onPressed: () {
          Navigator.of(context).pop();
          RxBus.post(HideSpinnerEvent());
        },
      );
      var b2 = FlatButton(
        textColor: Colors.red,
        child: Text('On all devices'),
        onPressed: () {
          Navigator.of(context).pop();
          RxBus.post(HideSpinnerEvent());
        },
      );
  
      var b3 = FlatButton(
        child: Text('Cancel'),
        onPressed: () {
          Navigator.of(context).pop();
        },
      );
  
      return showDialog&lt;void&gt;(
        context: context,
        builder: (BuildContext context) {
          return AlertDialog(
            title: Text(''),
            content: Text(
                "Möchtest du dich auf allen Geräten abmelden oder nur auf diesem Gerät?"),
            actions: &lt;Widget&gt;[
              b1, b2, b3
            ],
  
          );
        },
      );
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/mBC5f.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mBC5f.jpg" alt="enter image description here"></a></p>