From a777bc4e1e50b3e71484d44c0276b369b5a2b961 Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 19 Aug 2019 10:03:13 +0100 Subject: [PATCH] experiment failed we'll get em next time --- lib/main.dart | 1 - lib/pages/receipt_page_2.dart | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 61fff8d..7a63c3b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:local_spend/pages/home_page.dart'; import 'package:local_spend/pages/login_page.dart'; -import 'package:local_spend/pages/receipt_page.dart'; import 'package:local_spend/pages/receipt_page_2.dart'; import 'package:local_spend/pages/spash_screen.dart'; import 'package:local_spend/pages/more_page.dart'; diff --git a/lib/pages/receipt_page_2.dart b/lib/pages/receipt_page_2.dart index e064039..b2e7e8a 100644 --- a/lib/pages/receipt_page_2.dart +++ b/lib/pages/receipt_page_2.dart @@ -338,6 +338,17 @@ class ReceiptPage2State extends State { Container( padding: const EdgeInsets.fromLTRB(0, 0, 0, 0), height: 32.0, +// child: DropdownButton( +// value: transaction.category, +// items: _categories.map((thisOption) { +// DropdownMenuItem(child: Text(thisOption)); +// }).toList(), +//// items: _categories.map((thisOption) => DropdownMenuItem(child : Text(thisOption))).toList(), +// onChanged: ((newValue) { +// transaction.category = _categories[newValue]; +// setState(() {}); +// }) +// ), child: RaisedButton( onPressed: () { showModalBottomSheet(