refactor
This commit is contained in:
parent
a7c4396c71
commit
090f56b9f5
@ -39,13 +39,11 @@ void showSuccess(String text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool _hasDialog = false;
|
bool _hasDialog = false;
|
||||||
|
typedef BuildAlertDailog = Tuple3<Widget, Widget, List<Widget>> Function(
|
||||||
|
void Function(void Function()));
|
||||||
|
|
||||||
// https://material.io/develop/flutter/components/dialogs
|
// https://material.io/develop/flutter/components/dialogs
|
||||||
Future<Null> showAlertDialog(
|
Future<Null> showAlertDialog(BuildContext context, BuildAlertDailog build,
|
||||||
BuildContext context,
|
|
||||||
Tuple3<Widget, Widget, List<Widget>> Function(
|
|
||||||
void Function(void Function()))
|
|
||||||
build,
|
|
||||||
{WillPopCallback onWillPop}) async {
|
{WillPopCallback onWillPop}) async {
|
||||||
dismissLoading();
|
dismissLoading();
|
||||||
if (_hasDialog) {
|
if (_hasDialog) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user