SHARE
TWEET

Untitled

a guest Aug 25th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. showDialog(
  2.         context: context,
  3.         barrierDismissible: false,
  4.         builder: (context) {
  5.            return new CupertinoAlertDialog(
  6.            title: new Text('Data not saved?'),
  7.            content: new Text(
  8.                'Data will be lost. Are you sure you want to exit?'),
  9.            actions: <Widget>[
  10.                 new CupertinoButton(
  11.                    onPressed: () => Navigator.of(context).pop(false),
  12.                    child: new Text('No'),
  13.                  ),
  14.                 new CupertinoButton(
  15.                     onPressed: () => Navigator.of(context).pop(true),
  16.                     child: new Text('Yes'),
  17.                    ),
  18.                   ],
  19.             );
  20.    });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top