flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

remove dart:html to be compatible with wasm

Open s681562 opened this issue 6 months ago • 3 comments

main.dart => package:vhp => package:oidc_default_store => package:universal_html => dart:html web_plugin_registrant.dart => package:flutter_secure_storage_web => dart:html

When it will be happen as stable version, ready for production?

Steps To Reproduce

flutter build web --release --wasm

Expected Behavior

zero error

Screenshots

Compiling lib\main.dart for the Web... 24.6s Error: Failed to compile application for the Web.

s681562 avatar Jul 11 '25 01:07 s681562

I have been able to get flutter_secure_storage 9.2.4 to build & run on wasm by overriding two of the internal packages which already have new live versions that support wasm.

dependency_overrides:
  flutter_secure_storage_web: ^2.0.0
  flutter_secure_storage_platform_interface: ^2.0.1

Note: I have not fully tested this but seemed to work ok.

lemz90 avatar Jul 18 '25 15:07 lemz90

Alternatively, you could switch to the 10 branch, which is still in beta, but we've been using it for months without any issue.

dependencies:
  flutter_secure_storage: ^10.0.0-beta.4

bartvanandel avatar Sep 25 '25 08:09 bartvanandel

Publishing v10 would be AMAZING! 😁

kevmoo avatar Oct 20 '25 23:10 kevmoo

I have released v10 which fixes this!

juliansteenbakker avatar Dec 11 '25 19:12 juliansteenbakker

Thank you!

kevmoo avatar Dec 11 '25 22:12 kevmoo