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
One can detect wether Flutter for Web runs with the HTML renderer or the CanvasKit renderer like this:
import 'dart:js' as js; final dynamic flutterCanvasKit = js.context['flutterCanvasKit']; if(flutterCanvasKit != null){ // runs with CanvasKit renderer }
This is especially helpful for bugs where the UI isn't renderer right.
Docs on the web renderer: https://docs.flutter.dev/development/tools/web-renderers
Since this issue is already quite old, the proposed solution above needs to be double-checked to see if it's still valid.
The text was updated successfully, but these errors were encountered:
I'll put up a PR for this during Hacktoberfest
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
One can detect wether Flutter for Web runs with the HTML renderer or the CanvasKit renderer like this:
This is especially helpful for bugs where the UI isn't renderer right.
Docs on the web renderer: https://docs.flutter.dev/development/tools/web-renderers
Since this issue is already quite old, the proposed solution above needs to be double-checked to see if it's still valid.
The text was updated successfully, but these errors were encountered: