From ad5140e2e690485770142f29760df990974216a4 Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 8 Jul 2019 15:34:02 +0100 Subject: [PATCH] just code trimming, going to read more about ListViews before continuing with 'organization name' section --- lib/common/widgets/popupListView.dart | 6 +++--- lib/pages/about_screen.dart | 2 ++ lib/pages/receipt_page.dart | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/common/widgets/popupListView.dart b/lib/common/widgets/popupListView.dart index 2ef18bc..e4f0128 100644 --- a/lib/common/widgets/popupListView.dart +++ b/lib/common/widgets/popupListView.dart @@ -33,6 +33,8 @@ class PopupListView { return dialogOptionsList; } + + Widget dialog() { return new SimpleDialog( title: Text(listTitle), @@ -41,9 +43,7 @@ class PopupListView { } void optionChosen(String option) { - // this works at least... - - + // now pass `option` to } } diff --git a/lib/pages/about_screen.dart b/lib/pages/about_screen.dart index a9b8f27..2c20bcd 100644 --- a/lib/pages/about_screen.dart +++ b/lib/pages/about_screen.dart @@ -67,6 +67,7 @@ class _HomePageState extends State { padding: EdgeInsets.fromLTRB(0,20,0,0), child: Text( "Email: Test@admin.com", + // TODO: Make this an @email link textAlign: TextAlign.center, style: TextStyle( fontSize: 18.0, @@ -78,6 +79,7 @@ class _HomePageState extends State { padding: EdgeInsets.fromLTRB(0,20,0,0), child: Text( "Phone: +44(0)1524 64544", + // TODO: Make this a @phone link textAlign: TextAlign.center, style: TextStyle( fontSize: 18.0, diff --git a/lib/pages/receipt_page.dart b/lib/pages/receipt_page.dart index fa145d1..7b13c4c 100644 --- a/lib/pages/receipt_page.dart +++ b/lib/pages/receipt_page.dart @@ -129,6 +129,7 @@ class ReceiptPageState extends State { // eg 2019-07-05T10:24:00.000+01.00 (real life example, works) // current format = "dd/MM/yyyy 'at' hh:mm" + // 0123456789ABCDEFGHIJK var components = new List(5); @@ -156,8 +157,6 @@ class ReceiptPageState extends State { var popupListView = new PopupListView(context, optionsList, "Choose Organization"); - popupListView.options = optionsList; - var dialog = popupListView.dialog(); // print(dialog);