rakibjoarder
rakibjoarder
Reproduces with firebase_database: ^8.0.0 [flutterfire/packages/firebase_database/firebase_database/lib/ui/firebase_sorted_list.dart](https://github.com/FirebaseExtended/flutterfire/blob/110a79c5505dc818ba017cc4a46144170830f352/packages/firebase_database/firebase_database/lib/ui/firebase_sorted_list.dart#L97) Line 97 in [110a79c](https://github.com/FirebaseExtended/flutterfire/commit/110a79c5505dc818ba017cc4a46144170830f352) onChildAdded!(_snapshots.indexOf(event.snapshot), event.snapshot); indexOf is returning -1 here solution is here: `void _onChildAdded(DatabaseEvent event) { //adding this will solve your issue DataSnapshot...
> @johnwargo check my last comment for solution.