Hi IM working in Flutter project, basically I query db, convert result in map, fill list with result and pass to groupView.. Everything working but, in every other group first item switch place with some other item from same group at hotrestart app or when setstate is called. If I use dummy data from example here no switching occur? Dose anyone now what cud be wrong?
Future<void> _getData() async {
List<Map<String, dynamic>> result = await dbService.getRelatedTo();
if (result.isNotEmpty) {
var map = new Map<String, dynamic>();
for (int i = 0; i < result.length; i++) {
map['Description'] = result[i]['Description'].toString();
map['Category'] = result[i]['Category'].toString();
questionsBooks.add(Map<dynamic, String>.from(map));
}
}
}
GetData is caled in initState, so every time i hot reload app or rebuild, grouping item first in second group is changed to some other if reload again all get back to normal? Strange, i cud need any help ty.
Hi IM working in Flutter project, basically I query db, convert result in map, fill list with result and pass to groupView.. Everything working but, in every other group first item switch place with some other item from same group at hotrestart app or when setstate is called. If I use dummy data from example here no switching occur? Dose anyone now what cud be wrong?
GetData is caled in initState, so every time i hot reload app or rebuild, grouping item first in second group is changed to some other if reload again all get back to normal? Strange, i cud need any help ty.