Skip to content

Instantly share code, notes, and snippets.

@Shubham-Narkhede
Created January 21, 2020 04:13
Show Gist options
  • Save Shubham-Narkhede/854d6ab1c28b9a0f31e272fd75f91399 to your computer and use it in GitHub Desktop.
Save Shubham-Narkhede/854d6ab1c28b9a0f31e272fd75f91399 to your computer and use it in GitHub Desktop.
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