Last active
May 11, 2020 17:04
-
-
Save prafullakumar/a4051234fe17b762138c1ff06cb366a4 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
showDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return AlertDialog( | |
title: Text("Title", textAlign: TextAlign.center), | |
content: Text("orem 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.",textAlign: TextAlign.center), | |
actions: <Widget>[ | |
FlatButton( | |
child: Text("This is veary long Text"), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
FlatButton( | |
child: Text("Close"), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
], | |
); | |
}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment