daewu14 / google_one_tap_sign_in

Flutter Google One Tap Sign In (Android)
MIT License
8 stars 11 forks source link

google_one_tap_sign_in.dart:4:8: Error: Not found: 'dart:ffi' #3

Open ToddHerron opened 2 years ago

ToddHerron commented 2 years ago

Package version: google_sign_in_web 0.10.1

Problem: When I try to run my flutter web app, I get the following error:

../../flutter/.pub-cache/hosted/pub.dartlang.org/google_one_tap_sign_in-1.0.3/lib/google_one_tap_sign_in.dart:4:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
Waiting for connection from debug service on Chrome...            152.1s
Failed to compile application.

Even though pub.dev says the package doesn't support flutter web, it looks like from the package ChangeLog that flutter web has been supported since version 1.0.0 (because it supports web Client Ids).

I tried running:

and none of the above worked.

Any ideas/thoughts? Thanks in advance :)

pyciko commented 1 year ago

+1. Right now, the only way to build the web app is to remove the plugin import and any code associated with it. I understand that this plugin is android-exclusive, but there should be a way to build the web app without temporary removing all of that. Maybe making a web version that will just throw an error upon call will be sufficient, because what we actually need to achieve here is to just avoid internal ffi import.