Skip to content

Upgrading get 1 to 2

Breaking1.17.3 → 2.14.1Breaking6Deprecated2New42Changed17Fixed22Other22

BreakingUpgrade verdict

6 breaking changes.

  • One of the options you could pass to update() has been removed for good, so code using it will no longer work.
  • Code that passed a value to list methods must be updated.
  • Leftover code from an old routing feature was causing errors, so it has been fully removed.
  • A built-in dialog type called defaultDialog is no longer available.
Top 5 of 8 that need code or config changes

Dart SDK requirement changed in 2.4.0: >=2.1.0 <3.0.0 → >=2.6.0 <3.0.0.

Breaking6
Permanently removes a property of the update() method.
update()
Refactors the full List API so the value parameter is no longer needed.
Removes remaining previousArgs references from routeObserver after the feature was deprecated and removed in 2.5.8.
routeObserverpreviousArgs
Removes the defaultDialog type.
defaultDialog
Changes the bottomsheet API to comply with the documentation.
Changes the dialog API.
Deprecated2
Deprecates namedPages.
namedPages
Deprecates the "this" property of the "update" method, to be removed in the next update; use "update()" instead.
update()this