flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

[WEB] Wasm support

Open rokk4 opened this issue 1 year ago • 2 comments

Do not hinder wasm compilation.

    Context: The unavailable library 'dart:html' is imported through these packages:
    
    web_plugin_registrant.dart => package:flutter_secure_storage_web => dart:html

Describe the solution you'd like Move away from dart:html and dart:js

package:web, which replaces dart:html (and other web libraries) dart:js_interop, which replaces package:js and dart:js

https://docs.flutter.dev/platform-integration/web/wasm#js-interop-wasm

rokk4 avatar Jun 03 '24 10:06 rokk4

https://github.com/mogol/flutter_secure_storage?tab=readme-ov-file#wasm-support

ThomasAunvik avatar Jun 03 '24 10:06 ThomasAunvik

https://github.com/mogol/flutter_secure_storage?tab=readme-ov-file#wasm-support

Wow that was quick

hermankravchenko-ama avatar Jun 05 '24 20:06 hermankravchenko-ama

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 13 '24 19:08 github-actions[bot]

I generated a simple flutter app and then cursor IDE led me thru all the changes to make it compatible for a wasm build. https://github.com/sk92129/secure-storage-web-wasm-simple

sk92129 avatar Mar 20 '25 21:03 sk92129

Im wating this

alvarogabrielgomez avatar Apr 02 '25 16:04 alvarogabrielgomez