Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Files

flutter_wasm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 30, 2021
Jun 22, 2023
Dec 9, 2022
Oct 29, 2021
Nov 6, 2022
Dec 9, 2022
Oct 29, 2021
Oct 29, 2021
Nov 11, 2021
Jun 22, 2023
Jun 22, 2023

Provides utilities for loading and running WASM modules in Flutter apps. Currently only Android is supported.

This is a wrapper around package:wasm. See that package for more information and documentation. The basic usage is mostly the same as in that package. The main thing this plugin does is run wasm:setup for your target device during app compilation.

Usage

  1. Add a dependency to flutter_wasm in your pubspec.yaml and run flutter pub get.

  2. Next run flutter pub run flutter_wasm:setup to build the Wasmer runtime for your host machine. This does not build the runtime for your target device. It will take a few minutes.

  3. Load your wasm code in your app. See the example app.

  4. Run your app using flutter run. If you see an error at runtime saying "libwasmer.so not found", just try rebuiling. The first build sometimes fails. #51