[Feature Request] Webassembly (Wasm) support in Amplify Flutter #4807
Labels
Build
Issues related to building apps using Amplify flutter
feature-request
A request for a new feature or an enhancement to an existing API or category.
Description
Amplify-flutter library should support WebAssembly web build support. Now we can build with
--wasm
parameter onflutter build web
. It's on beta on flutter channel, but it will arrive soon.When I try to build
flutter build web --wasm
. It will gives these errors like this table. So if we want to support web assembly build. we should replace package:js, dart:js and dart:js_util libraries to dart:js_interop and/or dart:js_interop_unsafe.Sources: https://dart.dev/interop/js-interop, https://dart.dev/interop/js-interop/past-js-interop, https://dart.dev/interop/js-interop/usage, https://dart.dev/interop/js-interop/js-types
I couldn't understand fully how can we achieve this, documents not crystal clear for migration. If anyone can help maybe we can do this.
Categories
Steps to Reproduce
flutter build web --wasm
on Flutter version 3.22.0-0.3.pre on channel betait gives these errors:
Screenshots
No response
Platforms
Flutter Version
3.22.0-0.3.pre
Amplify Flutter Version
1.8.0
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: