dropdownbutton still not working fully
...but it works a bit more than before!
This commit is contained in:
parent
2e0802ac73
commit
525a092f40
3 changed files with 122 additions and 77 deletions
|
@ -70,7 +70,9 @@ Future<List<Category>> getCategories() async { // confusing name
|
|||
// });
|
||||
|
||||
// print(categories[10].name.toString()); // prints "Banana"
|
||||
return categories;
|
||||
|
||||
return categories; // categories is List<Category>
|
||||
// Category is defined at the top^^
|
||||
} else {
|
||||
// not successful
|
||||
return null;
|
||||
|
|
Reference in a new issue