Upgrade dependencies, fix Android/iOS build + UI deprecations (Flutter dev env)#7
Draft
chaturadilan wants to merge 3 commits into
Draft
Upgrade dependencies, fix Android/iOS build + UI deprecations (Flutter dev env)#7chaturadilan wants to merge 3 commits into
chaturadilan wants to merge 3 commits into
Conversation
Co-authored-by: Chatura Dilan <[email protected]>
- Upgrade firebase_*, network_to_file_image (4.x), image_cropper (4.x), image_picker, flutter_facebook_auth, sign_in_with_apple, google_sign_in, flutter_form_builder/validators (8.x), carousel_slider (5.x), logger (2.x), google_fonts, font_awesome_flutter, package_info_plus, loading_overlay. - Keep sizer at 2.0.15 to preserve DeviceType.mobile/tablet semantics and avoid ScreenType export clash with get. - Migrate code to new APIs: FormBuilderValidators without context, ImageCropper().cropImage with uiSettings, CarouselSliderController, LoadingOverlay without opacity, FormBuilderDropdown hintText. - Fix deprecations: ElevatedButton primary/onPrimary -> backgroundColor/ foregroundColor, textTheme.headline6 -> titleLarge, logger dateTimeFormat. - Remove duplicate import; add crypto/path as direct deps; sort child last. - flutter analyze: no issues; Android apk builds successfully. Co-authored-by: Chatura Dilan <[email protected]>
Co-authored-by: Chatura Dilan <[email protected]>
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.
Summary
Sets up the Cursor Cloud dev environment for this Flutter package and upgrades its outdated dependencies so it actually compiles into an app again, fixing all resulting code/UI breakages.
Why
The repo's pinned deps (
network_to_file_image 3.1.0,firebase_* 3.x) predate Dart 2.15+ interface changes and could not be compiled into an app on any Dart version satisfying the rest of the lockfile (flutter >= 2.10).developis identical tomainandrelease/v4.3.0keeps the same pins, so the fix required upgrading dependencies directly.Changes
pubspec.yaml):network_to_file_image 4.x,firebase_auth 4.x,cloud_firestore 4.x,firebase_storage 11.x,firebase_analytics 10.x,image_cropper 4.x,image_picker 1.x,flutter_facebook_auth 5.x,sign_in_with_apple 5.x,google_sign_in 6.x,flutter_form_builder/form_builder_validators 8.x,carousel_slider 5.x,google_fonts 4.x,font_awesome_flutter 10.x,package_info_plus 4.x,loading_overlay 0.5.x,logger 2.x. Addedcrypto/pathas direct deps. Keptsizerat2.0.15(3.x dropsDeviceType.mobile/tabletand clashes withgetonScreenType).FormBuilderValidatorswithoutcontext;ImageCropper().cropImage(... uiSettings: [...])returningCroppedFile;CarouselSliderController;LoadingOverlaywithoutopacity;FormBuilderDropdownhint viadecoration.hintText.ElevatedButton.styleFromprimary/onPrimary→backgroundColor/foregroundColor;textTheme.headline6→titleLarge;loggerprintTime→dateTimeFormat; removed a duplicate import; sortedchildlast.flutter pub get.AGENTS.mddocuments the toolchain + build caveats (host app needsminSdkVersion 21;flutter cleanbefore web after thepackage_info_plusmajor bump).Verification
flutter analyze→ No issues found!flutter build apk --debug(example app consuming the package) → builds an 85 MB APK.flutter build web→ builds successfully.LoginButtonwidget renders and is interactive (counter increments on click).flutter build iosunavailable; requires macOS + Xcode).Walkthrough
flexus_upgraded_web_demo.mp4
Upgraded framework's
LoginButtonrendering and incrementing the counter on click.App loaded, Clicked: 0
Counter at 3 after clicks
flexus_build_success.log
To show artifacts inline, enable in settings.