-
Notifications
You must be signed in to change notification settings - Fork 420
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
Enable Flutter WASM #3069
Comments
this may also be helpful
|
errors encountered by @ndonkoHenri
|
Wow, that looks like a future! Btw, it's possible to add |
Re |
Yeah, I tried that: https://github.com/ndonkoHenri/test-flet-github-actions/actions/runs/8772266592/job/24071006981#step:6:5 What's I could perhaps be of help in the package migrations. |
Enabling WASM in Flet ProjectThis guide will walk you through the steps required to enable WebAssembly (WASM) in Flet . Step 1: Create the Flutter Project for WebRun the following command to create the Flutter project with web support: flutter create . --platforms=web Step 2: Modify
|
Part of this comment (Tasks) was written by the flet-dev Team
More info: https://docs.flutter.dev/platform-integration/web/wasm
Tasks for WASM support
Based on @ndonkoHenri build log below (thank you!) I can see the following changes to support WASM:
permission_handler
: migrate to package:web Baseflow/flutter-permission-handler#1303record
: Migrate to package:web llfbandit/record#311package_info_plus
to 6.0.0+ inserious_python
.lib/src/flet_server_protocol_javascript_web.dart
lib/src/utils/platform_utils_web.dart
in Flet package.lib/src/utils/session_store_web.dart
in Flet package.flutter_native_splash
to 2.4.0+ with WASM-related fixes (https://pub.dev/packages/flutter_native_splash/changelog)Original Comment
Please add Flutter build web --wasm support to flet
Very exciting changes to Flutter web. It supports compiling main.dart.js into wasm and the skia engine.
The download size is dramatically reduced from 30 megs to 6 megs, and much faster start up of less than 3 seconds vs 10+. see https://docs.flutter.dev/platform-integration/web/wasm
example you can try right now
https://flutterweb-wasm.web.app/
i have tested this on my old iphone6 and it works extremely well
Watch this recent video of the announcement. it is in beta and available as of writing. linked to relevant talk
youtube talk about flutter web wasm
Please include this in Flet so our Flet web pyiode deploys can get much smaller and faster!
The text was updated successfully, but these errors were encountered: