Skip to content

Fix geolocator current position API usage - #19

Merged
krishna3554 merged 1 commit into
mainfrom
codex/fix-geolocator-parameter-error
May 14, 2026
Merged

krishna3554 merged 1 commit into
mainfrom
codex/fix-geolocator-parameter-error

Conversation

@krishna3554

Copy link
Copy Markdown
Owner

Motivation

  • Fix a compile-time error caused by using the unsupported locationSettings named parameter on Geolocator.getCurrentPosition after upgrading to geolocator 12.x.

Description

  • Replace locationSettings: const LocationSettings(...) with desiredAccuracy: LocationAccuracy.high and timeLimit: const Duration(seconds: 10) in lib/core/utils/location_utils.dart to match the geolocator 12 API.

Testing

  • Ran git diff --check which passed, and attempted dart --version && dart analyze but dart is not installed in this environment so static analysis could not be executed.

Codex Task

@krishna3554
krishna3554 merged commit e4fd2df into main May 14, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant