Created
October 16, 2020 17:25
-
-
Save antocara/eb6d12fb00aa63e86d279d2797d50d97 to your computer and use it in GitHub Desktop.
This file contains 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
Widget _buildAlertDialog() { | |
return AlertDialog( | |
title: Text('Notificaciones'), | |
content: | |
Text("¿Desea recibir notificaciones? Serán muy pocas de verdad :)"), | |
actions: [ | |
FlatButton( | |
child: Text("Aceptar"), | |
textColor: Colors.blue, | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}), | |
FlatButton( | |
child: Text("Cancelar"), | |
textColor: Colors.red, | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}), | |
], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment