Skip to content

Commit a25fdb2

Browse files
cleanup example page
1 parent a3ab10e commit a25fdb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/lib/location_indicator_example_page.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ class _LocationIndicatorExamplePageState extends State<LocationIndicatorExampleP
238238
);
239239

240240
if (newSetAutoPanMode != null) {
241-
// No need to use setState
242-
_activeAutoPanMode = newSetAutoPanMode;
241+
setState(() => _activeAutoPanMode = newSetAutoPanMode);
243242
_controller?.locationDisplay.setAutoPanMode(newSetAutoPanMode);
244243
}
245244
if (_activeAutoPanMode == AutoPanMode.recenter) {

0 commit comments

Comments
 (0)