We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56cbd68 commit 6f3d8ecCopy full SHA for 6f3d8ec
lib/pages/saved_places.dart
@@ -71,9 +71,10 @@ class SavedPlacesPageState extends State<SavedPlacesPage> {
71
final savedLocationsBloc = SavedLocationsBloc.of(context);
72
73
return StreamBuilder(
74
+ initialData: savedLocationsBloc.locations.reversed.toList(),
75
stream: savedLocationsBloc.outLocations,
76
builder: (BuildContext context, AsyncSnapshot<List<TrufiLocation>> snapshot) {
- final data = savedLocationsBloc.locations.reversed.toList();
77
+ final data = snapshot.data.reversed.toList();
78
return ListView.builder(
79
padding: const EdgeInsets.all(16.0),
80
itemCount: data.length,
0 commit comments