You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runtime detection for html versus canvaskit renderer #106689
There are a number of optimizations we'd like to make to the framework that will only work with the canvaskit renderer. For now, we can turn these off with kIsWeb, but ideally we could runtime detect canvaskit and apply those optimizations there as well.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
yjbanov commentedon Jun 28, 2022
We also need this to unskip tests that can run in one of the renderers. Currently we skip tests for both renderers.
dnfield commentedon Jun 28, 2022
Would it make sense to have some kind of define like
kAccelleratedGraphics?jonahwilliams commentedon Jun 28, 2022
we'd still need to determine the difference between HTML and software, because some APIs just won't work in html
jonahwilliams commentedon Jun 28, 2022
I mean I can implement this today as:
But ideally we'd have something less hacky
dnfield commentedon Jun 28, 2022
This feels like we're trying to work around the lack of an API availability language feature...
jonahwilliams commentedon Jun 28, 2022
yes :)
nshahan commentedon Feb 13, 2026
@mdebbar
Is this issue still relevant?
mdebbar commentedon Feb 13, 2026
We've had runtime detection for quite a while now:
flutter/packages/flutter/lib/src/foundation/capabilities.dart
Lines 9 to 22 in 57bc7aa
github-actions commentedon Feb 27, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.