Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.