Skip to content

Upgrading geolocator 12 to 13

Breaking12.0.0 → 13.0.4Breaking1New1Changed7Fixed1Other4

BreakingUpgrade verdict

1 breaking change.

  • When asking for the current location, you should now pass a settings object instead of the old accuracy, Android location manager, and time limit options.
1 item needs code or config changes

Dart SDK requirement changed in 13.0.3: >=2.15.0 <4.0.0 → ^3.5.0.

Breaking1
Deprecates getCurrentPosition desiredAccuracy, forceAndroidLocationManager, and timeLimit parameters in favor of supplying a LocationSettings class.
getCurrentPositiondesiredAccuracyforceAndroidLocationManagertimeLimitLocationSettings

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • changed: static method Geolocator.getCurrentPosition({ LocationAccuracy desiredAccuracy = …, bool forceAndroidLocationManager = …, Duration? timeLimit, }): Future<Position> → static method Geolocator.getCurrentPosition({ LocationSettings? locationSettings, @Deprecated( "use settings parameter with AndroidSettings, AppleSettings, WebSettings, or LocationSettings") LocationAccuracy desiredAccuracy = …, @Deprecated( "use settings parameter with AndroidSettings, AppleSettings, WebSettings, or LocationSettings") bool forceAndroidLocationManager = …, @Deprecated( "use setti…