0

Goal
I need a clear, step-by-step process I can follow to make the app + dependencies compatible with that 16 KB page-size constraint without upgrading Flutter SDK. I am looking for concrete actions I can take on:

  • pubspec.yaml

  • build flags

  • Gradle settings

  • iOS project settings

  • or any packaging adjustments

Environment

  • Flutter SDK: 3.10 (cannot upgrade)

  • Target platforms: Android and/or iOS (mainly Android)

  • Build mode: Release

  • Full dependency list included below

What I need

  1. What does "make compatible with 16 KB page size" mean for Flutter (Android/iOS)?
    If there are multiple interpretations, please list them + how to verify.

  2. Since I cannot upgrade Flutter, what step-by-step process can I follow to:

    • detect issues with page-size usage

    • apply required build/config changes

    • verify the final binary is compliant with the 16 KB page-size limit

  3. If third-party packages need patching due to native code, how do I minimally modify or replace them?

  4. Does anything in this pubspec.yaml look incompatible with strict size or page-size constraints?

dependencies:
 flutter:
 sdk: flutter
 cupertino_icons: ^1.0.2
 bloc: ^8.1.2
 flutter_bloc: ^8.1.3
 bloc_concurrency: ^0.2.2
 equatable: ^2.0.5
 # firebase_auth: ^4.9.0
 # firebase_core: ^2.15.1
 pinput: ^3.0.1
 google_fonts: ^5.1.0
 fl_country_code_picker: ^0.1.5
 another_flushbar: ^1.12.30
 shared_preferences: ^2.2.1
 image_picker: ^1.0.4
 mobile_scanner: ^3.4.1
 permission_handler: ^11.0.0
 geocoding: ^2.1.0
 geolocator: ^9.0.2
 youtube_player_flutter: ^8.1.2
 lottie: ^2.6.0
 syncfusion_flutter_gauges: ^23.1.36
 hive: ^2.2.3
 dio: ^5.3.3
 hydrated_bloc: ^9.1.2
 path_provider: ^2.1.1
 location: ^5.0.3
 hive_flutter: ^1.1.0
 freezed_annotation: ^2.4.1
 flutter_blue_plus: ^1.29.3
 gauge_indicator: ^0.4.3
 flutter_svg: ^2.0.9
 flutter_intl: ^0.0.1
 url_launcher: ^6.2.2
 fluttertoast: ^8.2.4
 flutter_localizations:
 sdk: flutter
 intl: any
 pdf: ^3.11.1
 printing: ^5.12.0
dev_dependencies:
 flutter_test:
 sdk: flutter
 flutter_lints: ^2.0.0
 hive_generator: ^2.0.1
 build_runner: ^2.4.6
 freezed: ^2.4.5
 flutter_launcher_icons: "^0.13.1"
 change_app_package_name: ^1.1.0
 intl_translation:
tomerpacific
6,85118 gold badges43 silver badges61 bronze badges
asked 14 hours ago
New contributor
Web Dev is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • 2
    What does it mean that you "cannot upgrade flutter"? You will need to make sure all of your third party libraries are also aligned to 16KB page sizes (check recent versions). I wrote an article that describes how to do this that may be of help. Commented 14 hours ago

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.