just code trimming, going to read more about ListViews before continuing with 'organization name' section

This commit is contained in:
Felix 2019-07-08 15:34:02 +01:00
parent d4ca4a0534
commit ad5140e2e6
3 changed files with 6 additions and 5 deletions

View file

@ -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
}
}

View file

@ -67,6 +67,7 @@ class _HomePageState extends State<AboutPage> {
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<AboutPage> {
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,

View file

@ -129,6 +129,7 @@ class ReceiptPageState extends State<ReceiptPage> {
// 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<ReceiptPage> {
var popupListView = new PopupListView(context, optionsList, "Choose Organization");
popupListView.options = optionsList;
var dialog = popupListView.dialog();
// print(dialog);