Upgrading fluttertoast 5 to 6
Breaking5.0.1 → 6.0.1Breaking1Changed2
BreakingUpgrade verdict
1 breaking change.
In plain terms
- This version is a full rewrite of the package, and it no longer relies on platform-specific native code.
Must act 1 item needs code or config changes
What you must change
Breaking1
Replaces the package with a complete new implementation that no longer uses any native code.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
static method FlutterToast.cancel(): Future<bool> - changed:
static method FlutterToast.showToast( {@required String msg, Toast toastLength, int timeInSecForIosWeb = …, double fontSize, ToastGravity gravity, Color backgroundColor, Color textColor, bool webShowClose = …, webBgColor = …, webPosition = …}): Future<bool> → method FlutterToast.showToast({ @required Widget child, Duration toastDuration, ToastGravity gravity, }): void - added:
class Fluttertoast - added:
ctor FlutterToast(BuildContext context) - added:
field FlutterToast.context: BuildContext - added:
member ToastGravity.BOTTOM_LEFT - added:
member ToastGravity.BOTTOM_RIGHT - added:
member ToastGravity.CENTER_LEFT - added:
member ToastGravity.CENTER_RIGHT - added:
member ToastGravity.TOP_LEFT - added:
member ToastGravity.TOP_RIGHT - added:
method FlutterToast.removeCustomToast() - added:
method FlutterToast.removeQueuedCustomToasts() - added:
static method Fluttertoast.showToast(BuildContext context, {ToastGravity gravity = …, String msg, int toastDuration = …}): void
- removed:
class FlutterToastWebPlugin - removed:
ctor FlutterToastWebPlugin() - removed:
method FlutterToastWebPlugin.addHtmlToast( {String msg = …, String gravity = …, String position = …, String bgcolor = …, int time = …, bool showClose = …}) - removed:
method FlutterToastWebPlugin.handleMethodCall(MethodCall call): Future<dynamic> - removed:
method FlutterToastWebPlugin.injectCssAndJSLibraries(): Future<void> - removed:
method FlutterToastWebPlugin.showToast(args): Future<void> - removed:
static method FlutterToastWebPlugin.registerWith(Registrar registrar): void