bharathraj-e / g_recaptcha_v3

Create Google reCAPTCHA v3 token for Flutter web.
https://pub.dev/packages/g_recaptcha_v3
MIT License
12 stars 8 forks source link

Support to js: 0.7.1 #14

Open JgomesAT opened 8 months ago

JgomesAT commented 8 months ago

To add possibility to compile WASM in the projects its necessary update de js library to 0.7.1

JgomesAT commented 5 months ago

is the schedule a migration to WASM?

now I HAve this error:

../../../../.pub-cache/hosted/pub.dev/g_recaptcha_v3-0.0.6/lib/g_recaptcha_v3_web.dart:5:8: Error: Dart library 'dart:html' is not available on this platform. import 'dart:html' as HTML;

g_recaptcha_v3-0.0.6/lib/g_recaptcha_v3_web.dart:11:1: Error: JS interop library 'package:js/js_util.dart' can't be imported when compiling to Wasm. Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead. import 'package:js/js_util.dart' as js_util; ^