-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
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
Shimmer on flutter web throwing NoSuchMethodError #69
Comments
Running into this same issue. Only in mobile browsers (specifically tested on iOS Chroms and iOS Safari). Unfortunately the only logs I've got are the browser's console logs, which aren't as good a dart debug logs: [Log] ══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════ (dart_sdk.js, line 30369) |
Further investigation shows this is actually not an issue with the shimmer package, but an issue with Flutter's framework. The real issue is Flutter mobile web uses the html renderer by default which doesn't support shaders. There's a fix coming up for Flutter that will at least not throw errors (I assume), but I doubt the shimmer will actually render. The real fix is to build with the --web-renderer=canvaskit flag. Then shimmer works great. Only downside is a larger download on mobile devices. Just make sure you show a good loading animation while the Flutter engine is downloading :) |
Can confirm, I was hitting this error in the latest flutter version as of now flutter build web --web-renderer=canvaskit |
Shimmer on flutter web throwing "NoSuchMethodError: method not found: 'toString' on null". Only in web app running on Android on Chrome.
The text was updated successfully, but these errors were encountered: