Future<void> getItemFromId(int id) async {
final Future<Database> dbFuture = databaseHelper.initializeDatabase();
dbFuture.then((database) {
Future<List<ItemClass>> itemListFromIdFuture =
databaseHelper.getItemListFromId(id);
itemListFromIdFuture.then((itemList) {
this.itemFromIdList = itemList;
//this.fullCount = itemList.length;
});
});
}
This is the code for getItemFromId which retrieves the itemList
--
You received this message because you are subscribed to a topic in the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flutter-dev/AS81gxKXuc4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cf849a84-b5a1-406d-a8e4-5a3a7f7e36e3n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAKM8LdC6L%2BxG0V-qLdUHH-%3D%2B-YujXQD2Ov5YE70Vephk6kSScQ%40mail.gmail.com.
yes i was suspecting that already but how do i solve this issue. Because when I hot reload, it gets filled up and hence no error.
earlier the length was 0 when it was not working and when it works after hot reload then the length is 1
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAHWORbqyq7PvmUunHauK8tdff%2BBPFpR%2BFWg0bvs3qKVmvF-sOg%40mail.gmail.com.
Le jeu., févr. 25, 2021 à 15:09, Suzuki Tomohiro<suz...@gmail.com> a écrit :
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAHWORbo7jidzbkRQoXR%2B3-MTBC%3Da4cHXOeOYo9PeGKeV9ko1dA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/40847272-97eb-492a-a4ed-d49ed831d9e0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/407375ec-65d4-4d3a-ae95-cf7a1248db29n%40googlegroups.com.