categories still broken
This commit is contained in:
parent
62d50f86a8
commit
030f482a54
3 changed files with 10 additions and 4 deletions
|
@ -95,6 +95,12 @@ class ReceiptPage2State extends State<ReceiptPage2> {
|
|||
List<String> _sampleRecurringOptions = new List<String>(7);
|
||||
List<String> _categories = new List<String>();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var _widgetHeight = MediaQuery.of(context).size.height * 0.06 < 40.0
|
||||
|
@ -105,8 +111,8 @@ class ReceiptPage2State extends State<ReceiptPage2> {
|
|||
Future<List<String>> _futureCats = getCats();
|
||||
_categories.add("Fetching categories...");
|
||||
_futureCats.then((value) {
|
||||
_categories = null;
|
||||
_categories = value;
|
||||
setState(() {});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue