Upgrading fluttertoast 9 to 10
Breaking9.1.0 → 10.0.2Breaking1Platform1Fixed1Other3
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- The Android part of this package no longer sets a target SDK version, so your app's own setting is used instead.
- You need at least Flutter 3.44 and Dart 3.12 to use this version.
Must act 2 items need code or config changes
Dart SDK requirement changed in 10.0.0: >=3.11.0 <4.0.0 → >=3.12.0 <4.0.0.
Flutter requirement changed in 10.0.0: >=3.41.0 → >=3.44.0.
What you must change
Breaking1
Removes
targetSdk from the Android library so consuming apps control their own target SDK.targetSdkPlatform1
Raises minimum supported SDK versions to Flutter 3.44 and Dart 3.12.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- changed:
typedef PositionedToastBuilder = Widget Function( BuildContext context, Widget child, ToastGravity? gravity) → typedef PositionedToastBuilder = Widget Function(BuildContext context, Widget child, ToastGravity? gravity) - changed:
typedef ToastPositionMapping = Widget? Function( Widget child, ToastGravity? gravity) → typedef ToastPositionMapping = Widget? Function(Widget child, ToastGravity? gravity)