1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-14 03:19:06 +00:00

3.38 / 3.10 (#2742)

This PR makes samples pass CI when 3.10 is released.

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).
This commit is contained in:
Eric Windmill
2025-11-12 11:46:47 -08:00
committed by GitHub
parent 744a2653c9
commit 3adcdc929a
13 changed files with 79 additions and 101 deletions

View File

@@ -273,7 +273,9 @@ class _PlaceMapState extends State<PlaceMap> {
newConfiguration.selectedCategory) {
// If the configuration change is only a category change, just update
// the marker visibilities.
await _showPlacesForSelectedCategory(newConfiguration.selectedCategory);
await _showPlacesForSelectedCategory(
newConfiguration.selectedCategory,
);
} else {
// At this point, we know the places have been updated from the list
// view. We need to reconfigure the map to respect the updates.
@@ -343,7 +345,10 @@ class _PlaceMapState extends State<PlaceMap> {
}
Future<void> _switchSelectedCategory(PlaceCategory category) async {
Provider.of<AppState>(context, listen: false).setSelectedCategory(category);
Provider.of<AppState>(
context,
listen: false,
).setSelectedCategory(category);
await _showPlacesForSelectedCategory(category);
}
@@ -361,7 +366,11 @@ class _PlaceMapState extends State<PlaceMap> {
: null,
),
);
_updateMarker(marker: marker, updatedMarker: updatedMarker, place: place);
_updateMarker(
marker: marker,
updatedMarker: updatedMarker,
place: place,
);
});
}