Repository navigation
Conversation
Linear: FPL-58 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dart 3.12 allows initializing a private field from a named parameter, so prefer_initializing_formals now flags the explicit _locale assignment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises the SDK floor of
geocodingto Dart^3.12.0and Flutter>=3.44.0, matching the Flutter team's own packages (FPL-48).environment:inpubspec.yamlandexample/pubspec.yaml→sdk: ^3.12.0,flutter: ">=3.44.0". Dependency constraints unchanged.dart format .(stable 3.47.4) reformatsexample/lib/main.dart,lib/geocoding.dartandtest/geocoding_test.dart.prefer_initializing_formalsflags_locale = localein the privateGeocoding._fromPlatformCreationParamsconstructor, because a private field can now be initialised from a named parameter. It now usesthis._locale; callers still passlocale:. No public API change.Merge order (FPL-48): 1.
geocoding_platform_interface→ 2.geocoding_darwin(geocoding_androidis already on^3.12.0/>=3.44.0, no PR) → 3.geocoding. Maurits merges and releases. This PR goes last.Linear: FPL-58
Verification (run in
geocoding/)flutter pub getflutter analyzeflutter testpub downgrade+analyzeBefore the analyzer-fix commit,
flutter analyzereported the oneprefer_initializing_formalsinfo on both versions.CI note:
app_facingfails, not caused by this PRThe
Failed to resolve package URI "package:flutter_lints/flutter.yaml"lines in the log are warnings fromdart format(it runs before the example has its packages). That step passes with 0 files changed. Analyze and tests pass on CI too (7 tests).The failing step is
flutter build apk --releaseingeocoding/example:CI runs the latest stable (Flutter 3.50.1), which raised the minimum Gradle version.
geocoding/example/android/gradle/wrapper/gradle-wrapper.propertieshas been on Gradle 9.1.0 onmainsince July, and this PR doesn't touchgeocoding/example/android, somainfails the same way on 3.50.1 (its last CI run, 5 Nov, used an older stable). Fixing it means bumping the example's Gradle wrapper (and possibly AGP), which belongs in its own PR.🤖 Generated with Claude Code