From 87e5499d09340aee04ff16e8c448dec6139160e7 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 17 Feb 2021 08:03:51 +1100 Subject: [PATCH] Cleanup - delete unused functions --- lib/widget/dialogs.dart | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/widget/dialogs.dart b/lib/widget/dialogs.dart index 939533ee..2ee883ed 100644 --- a/lib/widget/dialogs.dart +++ b/lib/widget/dialogs.dart @@ -53,12 +53,6 @@ Future confirmationDialog(String title, String text, {String acceptText, S ); } -void showMessage(BuildContext context, String message) { - Scaffold.of(context).showSnackBar(SnackBar( - content: Text(message), - )); -} - Future showInfoDialog(BuildContext context, String title, String description, {IconData icon = FontAwesomeIcons.info, String info, Function onDismissed}) async { @@ -147,25 +141,6 @@ Future showTimeoutError(BuildContext context) async { await showServerError(I18N.of(context).timeout, I18N.of(context).noResponse); } -void showProgressDialog(BuildContext context, String title, String description) { - - showDialog( - context: context, - barrierDismissible: false, - child: SimpleDialog( - title: Text(title), - children: [ - CircularProgressIndicator(), - Text(description), - ], - ) - ); -} - -void hideProgressDialog(BuildContext context) { - Navigator.pop(context); -} - void showFormDialog(String title, {GlobalKey key, List fields, List actions, Function callback}) { BuildContext dialogContext;