From 1675bcd932ece44d8e7de0285a06c7c9cae3efb7 Mon Sep 17 00:00:00 2001 From: Darius Maitia Date: Thu, 24 Mar 2022 13:16:35 -0300 Subject: [PATCH] Tidy up #4 Removing unused "Dialog" class, as well as its package "widgets". --- lib/widgets/Dialog.dart | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lib/widgets/Dialog.dart diff --git a/lib/widgets/Dialog.dart b/lib/widgets/Dialog.dart deleted file mode 100644 index b75e246..0000000 --- a/lib/widgets/Dialog.dart +++ /dev/null @@ -1,26 +0,0 @@ -import 'package:flutter/material.dart'; - -class Dialogs { - - static Future showLoadingDialog( - BuildContext context, GlobalKey key, String message) async { - return showDialog( - context: context, - barrierDismissible: false, - builder: (BuildContext context) { - return new WillPopScope( - onWillPop: () async => false, - child: SimpleDialog( - key: key, - children: [ - Center( - child: Column(children: [ - CircularProgressIndicator(), - SizedBox(height: 10,), - Text(message) - ]), - ) - ])); - }); - } -} \ No newline at end of file