Closed amrgetment closed 6 hours ago
Is it a runtime error or a no-op?
Can you add a print to check if the head
property is non-null? (Better to use .head!.append
to get a runtime error than a silent failure)
it is my bad, it was a different error due to the wrong client id
│ [error] | 21:40:30 925ms | Assertion failed: file:///Users/amr/.pub-cache/hosted/pub.dev/google_sign_in_web-0.12.4+3/lib/google_sign_in_web.dart:144:9 │ appClientId != null │ "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\" /> tag, or pass clientId when initializing GoogleSignIn" │ Assertion failed: file:///Users/amr/.pub-cache/hosted/pub.dev/google_sign_in_web-0.12.4+3/lib/google_sign_in_web.dart:144:9 │ appClientId != null │ "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\" /> tag, or pass clientId when initializing GoogleSignIn" └────────────────────────────────────────────────────────────────────────────────────────────────────────────── ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ [critical] | 21:40:30 925ms | Assertion failed: file:///Users/amr/.pub-cache/hosted/pub.dev/google_sign_in_web-0.12.4+3/lib/google_sign_in_web.dart:144:9 │ appClientId != null │ "ClientID not set. Either set it on a <meta name=\"google-signin-client_id\" content=\"CLIENT_ID\" /> tag, or pass clientId when initializing GoogleSignIn" └──────────────────────────────────────────────────────────────────────────────────────────────────────────────
Thanks for your fast help
I can build with wasm, I wonder can I launch the app with wasm
--web-renderer skwasm --wasm
Drop the --web-renderer
bit. --wasm
should be enough.
Thanks a lot for your great support
I have flavors and I change
google-signin-client_id
based on flavor but appending a newMeta
element to theHead
Element is not working for meis it a bug or my mistake?