We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi everyone,
In the file fluttertoast_web.dart, the following lines use a deprecated API:
fluttertoast_web.dart
final jsUrl = ui.webOnlyAssetManager.getAssetUrl( 'packages/fluttertoast/assets/toastify.js', );
Indeed, it's a deprecated method according to Flutter (at least on v3.16.3), see below warning message when running on web:
The webOnlyAssetManager getter is deprecated and will be removed in a future release. Please use `assetManager` from `dart:ui_web` instead.
The text was updated successfully, but these errors were encountered:
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.
assetManager
dart:ui_web
Sorry, something went wrong.
@ponnamkarthik could you review the open PR so we don't get the warning while running on web Thanks in advance
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: