Baseflow / Baseflow/flutter-geolocator

[Bug]: Dependency on package: package_info_plus

Open
#1,751 11 comments 51 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.3k
Forks
803
Avg merge
8h 16m
Merged PRs (30d)
1

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-geolocator/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-geolocator/blob/main/geolocator/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [x] Android
- [x] iOS
- [x] Linux
- [x] macOS
- [x] Web
- [x] Windows

### Steps to reproduce

Use the updated version of package_info_plus in your project: ^9.0.0 and geolocator: ^14.0.2

### Expected results

Be able to compile using the new version of package_info_plus

### Actual results

I get the following error:

```console
Because every version of tracker from path depends on geolocator ^14.0.2 and no versions of geolocator match >14.0.2 <15.0.0, every version of tracker from path requires geolocator 14.0.2.
And because geolocator 14.0.2 depends on geolocator_linux ^0.2.3, every version of tracker from path requires geolocator_linux ^0.2.3.
Because geolocator_linux 0.2.3 depends on package_info_plus ^8.0.0 and no versions of geolocator_linux match >0.2.3 <0.3.0, geolocator_linux ^0.2.3 requires package_info_plus ^8.0.0.
Thus, every version of tracker from path requires package_info_plus ^8.0.0.
And because every version of common from path depends on package_info_plus ^9.0.0, tracker from path is incompatible with common from path.
So, because worker depends on both common from path and tracker from path, version solving failed.
Failed to update packages.

```

### Code sample

pubspec.yaml

```yaml
name: example
description: Example
version: 0.0.1+1
publish_to: none

environment:
sdk: '>=3.4.0 <4.0.0'
flutter: '>=3.24.5'

dependencies:
package_info_plus: ^9.0.0
geolocator: ^14.0.2

flutter:
uses-material-design: true
```

### Screenshots or video

_No response_

### Version

14.0.2

### Flutter Doctor output

Doctor output

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.3, on macOS 15.6.1 24G90 darwin-arm64, locale es-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.103.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

```

Contributor guide

Open the contributing guide

Research direction

Start with the pubspec.yaml dependency constraints shown in the issue and trace the geolocator_linux dependency on package_info_plus. Reproduce the version-solving failure with the provided Flutter and Dart constraints, then verify that dependency resolution succeeds with package_info_plus ^9.0.0 across the affected packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.