We are upgrading the Flutter version (from 3.19.1 to 3.22.2) and also some third party packages we depend on. There will be some potential breaking changes in your custom code and we will be helping you with the migration process in this post. We’ve handled updating all of the breaking changes for you. If your project has no custom code, then you’re all set.

Flutter SDK breaking changes

There are a few breaking changes introduced in the latest Flutter 3.22 release, please checkout https://docs.flutter.dev/release/breaking-changes#released-in-flutter-3-22 and https://docs.flutter.dev/release/breaking-changes/3-19-deprecations for more details. Some common breaking changes are:

headline1 displayLarge
headline2 displayMedium
headline3 displaySmall
headline4 headlineMedium
headline5 headlineSmall
headline6 titleLarge
subtitle1 titleMedium
subtitle2 titleSmall
bodyText1 bodyLarge
bodyText2 bodyMedium
caption bodySmall
button labelLarge
overline labelSmall

fl_chart breaking changes

We are upgrading fl_chart from 0.55.0 to 0.68.0. And you can find the migration guide here: https://pub.dev/packages/fl_chart/changelog. For example, tooltipBgColor: Colors.blueGrey is now replaced by getTooltipColor: (BarChartGroupData group) => Colors.blueGrey.

List of upgraded packages

Below is a list of upgraded packages. If you have custom code that depends on these packages, chances are that you need to update the package versions accordingly.