Upgrades

Flutter Upgrade

0. Scripts

Scripts I use when upgrading Flutter, PFA

1. Update SDKs

  • Update flutter & dart SDKs across the project & sub-projects
  • Run the scripts needed
  • Verify the changes
    • by running the code

2. Check Deprecated Methods

  • check the analyzer for deprecated methods
  • check the warnings & errors
  • fix those things, you can find supported documents here
  • Verify the changes
    • by running the code

3. Check Natively Impacted Code

  • Check the warnings & errors you get while running. read documents that Flutter publishes for migration.
  • Fix those things

4. Upgrade dependencies if needed

  • use pubupgrade
    • If there are any conflicts between two dependencies, then this command will fail and you’ve to resolve them manually.
    • Common errors you will see are listed here
  • use pubget
  • use updatepods
  • Verify the changes
    • by running the code

Copyright © 2026