cleanPopUp method
dynamic
cleanPopUp(
- dynamic onTap,
- dynamic title
Implementation
cleanPopUp(onTap,title){
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text(AppStorages.languageKey!["alert"]!),
content: Text(title),
actions: <Widget>[
MaterialButton(
child: Text(AppStorages.languageKey!["NO"]!),
onPressed: () {
//Put your code here which you want to execute on No button click.
Navigator.of(context).pop();
},
),
MaterialButton(
onPressed: onTap,
child: Text(AppStorages.languageKey!["YES"]!),
),
],
);
},
);
}