Created
January 21, 2020 04:13
-
-
Save Shubham-Narkhede/854d6ab1c28b9a0f31e272fd75f91399 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
MaterialButton( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(40), | |
), | |
color: Colors.white, | |
child: Text('Simple Pop Up'), | |
onPressed: () async { | |
await animated_dialog_box.showCustomAlertBox( | |
// You can change the animation which u=you want to use like | |
// animated_dialog_box.showScaleAlertBox | |
// animated_dialog_box.showInOutDailog | |
// animated_dialog_box.showRotatedAlert | |
context: context, | |
firstButton: MaterialButton( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(40), | |
), | |
color: Colors.white, | |
child: Text('Ok'), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
yourWidget: Container( | |
child: Text('This is my first package'), | |
)); | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment