Created
May 11, 2020 17:14
-
-
Save prafullakumar/b27c31167836a264224723d07dc9d887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
showCupertinoDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return CupertinoAlertDialog( | |
title: Text('Title'), | |
content: Text('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean in congue nisi. Morbi tincidunt est id nibh dapibus, non pulvinar sem sollicitudin. Duis libero quam, posuere non justo non, facilisis sodales elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam sit amet dolor ut sem lobortis commodo id et nunc.'), | |
actions: <Widget>[ | |
CupertinoDialogAction( | |
child: Text('Long Text Button'), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
CupertinoDialogAction( | |
child: Text('Allow'), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
], | |
); | |
}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment