Created
April 9, 2020 20:06
-
-
Save parzibyte/5f98cac3688f0d99ca54baa5be5db53e 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
import 'package:flutter/material.dart'; | |
showAlertDialog(BuildContext context, Widget cancelButton, | |
Widget continueButton, String titulo, String contenido) { | |
AlertDialog alert = AlertDialog( | |
title: Text(titulo), | |
content: Text(contenido), | |
actions: [ | |
cancelButton, | |
continueButton, | |
], | |
); | |
showDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return alert; | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment