flutter: Can I adjust the width or height of the CupertinoAlertDialog(iOS style)?

Viewed 99

I'm new in flutter. I want a iOS style app so I use CupertinoAlertDialog. But I want to customize its height and width. Is that possible? Here is what I have done.


  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      home: Scaffold(
        body: RaisedButton(
          child: Text("Pick Me !!!"),
          onPressed: () {
            showDialog(
              context: context,
              builder: (_) => Center(
                child: CupertinoAlertDialog (
                  title: new Text("drop out"),
                  content: new Text("quit the window"),
                  actions: <Widget>[
                    FlatButton(
                      child: Text('Cancle!'),
                      onPressed: () {
                      Navigator.pop(_);
                      },
                    ),
                    FlatButton(
                      child: Text('OK'),
                      onPressed: () {
                      Navigator.pop(_);
                      },
                    )
                  ],
                ),
              )
            );
          },
        )
      ),
    );
  }
0 Answers
Related