This commit is contained in:
open-trade 2020-11-20 00:36:23 +08:00
parent a7c4396c71
commit 090f56b9f5

View File

@ -39,13 +39,11 @@ void showSuccess(String text) {
}
bool _hasDialog = false;
typedef BuildAlertDailog = Tuple3<Widget, Widget, List<Widget>> Function(
void Function(void Function()));
// https://material.io/develop/flutter/components/dialogs
Future<Null> showAlertDialog(
BuildContext context,
Tuple3<Widget, Widget, List<Widget>> Function(
void Function(void Function()))
build,
Future<Null> showAlertDialog(BuildContext context, BuildAlertDailog build,
{WillPopCallback onWillPop}) async {
dismissLoading();
if (_hasDialog) {