Open kevan-mtl opened 6 months ago
Fluttertoast.showToast(
msg: 'Success',
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.CENTER,
backgroundColor: Colors.green,
textColor: Colors.white,
fontSize: 16.0,
);
Warning: The webOnlyAssetManager getter is deprecated and will be removed in a future release. Please use assetManager
from
dart:ui_web
instead.
@ponnamkarthik could you review the open PR so we don't get the warning while running on web Thanks in advance
Hi everyone,
In the file
fluttertoast_web.dart
, the following lines use a deprecated API:Indeed, it's a deprecated method according to Flutter (at least on v3.16.3), see below warning message when running on web: