Skip to content

Upgrade Flutter to 3.44.3 and modernize platform tooling - #1

Open
ltdangkhoa wants to merge 1 commit into
masterfrom
cursor/flutter-upgrade-83fa
Open

Upgrade Flutter to 3.44.3 and modernize platform tooling#1
ltdangkhoa wants to merge 1 commit into
masterfrom
cursor/flutter-upgrade-83fa

Conversation

@ltdangkhoa

Copy link
Copy Markdown
Owner

Description

This PR upgrades QR Quick from a ~2021 Flutter/Dart 2.15 baseline to Flutter 3.44.3 (Dart 3.12.2).

Toolchain

  • Added FVM config (.fvm/fvm_config.json) pinning Flutter 3.44.3
  • Updated pubspec.yaml SDK constraints and fixed misplaced flutter_lints / flutter_launcher_icons config

Android

  • Migrated to Kotlin DSL Gradle files (AGP 9, Gradle 9.1)
  • Preserved custom MainActivity MethodChannel, AppWidget, share intents, and ZXing dependency
  • Added Android 13+ media read permission; removed Jetifier

iOS

  • Raised minimum deployment target to iOS 13.0
  • Added SceneDelegate for modern UIScene lifecycle

Dependencies

  • Replaced package_infopackage_info_plus
  • Replaced launch_reviewurl_launcher store URLs
  • Replaced qr_code_scannermobile_scanner
  • Upgraded rive, share_plus, in_app_purchase, and other direct deps
  • Removed unused deps (collection, path, path_provider, http, file_picker, app_settings)

Dart migrations

  • Fixed Dart 3 _ wildcard issues in context.select callbacks
  • Migrated WillPopScopePopScope, url_launcher/share_plus APIs
  • Updated receive_sharing_intent to instance-based media API (text shares now come through SharedMediaType.text)
  • Rewrote QR scan screen for mobile_scanner
  • Updated l10n imports to package:qrquick/l10n/app_localizations.dart

Verification

  • fvm flutter analyze — 0 errors (info/warnings only)
  • fvm flutter test — all tests passed
  • Android AAB build not run in cloud environment (no Android SDK installed)

Follow-up for reviewers

  • Run fvm flutter build appbundle --release and fvm flutter build ios on a machine with platform SDKs
  • Manually test: camera QR scan, share intent (text/image), home screen widgets, IAP sandbox, iOS Share Extension

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated CHANGELOG.md with a description of the change.
  • I am willing to follow-up on review comments in a timely manner.
Open in Web Open in Cursor 

Pin Flutter 3.44.3 via FVM and raise Dart SDK constraint to ^3.8.0.
Regenerate Android Gradle scaffolding (AGP 9, Gradle 9.1, Kotlin DSL)
while preserving custom MainActivity, AppWidget, and share intents.
Raise iOS minimum deployment target to 13.0 and add SceneDelegate.

Replace discontinued packages: package_info_plus, mobile_scanner,
url_launcher for store links, and updated share_plus/in_app_purchase APIs.
Remove unused dependencies and fix Dart 3 wildcard issues in Provider
selectors. Migrate l10n imports to package:qrquick/l10n and regenerate
localization files.

Co-authored-by: Kris <khoa.luu@vnappmob.com>
@ltdangkhoa
ltdangkhoa marked this pull request as ready for review June 30, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants