Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 9, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5f98cac3688f0d99ca54baa5be5db53e to your computer and use it in GitHub Desktop.
Save parzibyte/5f98cac3688f0d99ca54baa5be5db53e to your computer and use it in GitHub Desktop.
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