flutter_facebook_login
flutter_facebook_login copied to clipboard
[Flutter for Web] This package does not work when compiled for web.
This package does not work when compiled for web. Is there a way to make this work. I know this is how you tell if it is compiled for web or not.
import 'package:flutter/foundation.dart';
if (kIsWeb) {
} else {
}
any updates on this?
And on the pub it say web compatible, we should remove if it not the case.
Unfortunately I had to remove this plugin from the code base as I need the Web support. I'm looking forward to the Web support to be added.
Whoever is interested in this just try this: https://github.com/roughike/flutter_facebook_login/pull/227
It worked for me and it should be merged in to master
@serragnoli what plugin are you using now? I can't find one that works for web
@dannycortesv as explained by @pixnbit, porting to web is a work in progress. You might give it a try by setting the following in your pubspec file. (works only when your app is run in HTTPS mode).
flutter_facebook_login:
git:
url: '[email protected]:romulojjunior/flutter_facebook_login.git'
ref: 'v1.3.0-web' # Check latest version
I just test your fork @omarbelkhodja and I got this error:
[+2998 ms] Error: Unsupported operation: Platform._operatingSystem
at Object.throw_ [as throw] (http://localhost:7357/dart_sdk.js:4465:11)
at Function._operatingSystem (http://localhost:7357/dart_sdk.js:54679:17)
at Function.get operatingSystem [as operatingSystem] (http://localhost:7357/dart_sdk.js:54725:27)
at get _operatingSystem (http://localhost:7357/dart_sdk.js:54638:27)
at Function.desc.get [as _operatingSystem] (http://localhost:7357/dart_sdk.js:4946:15)
at get isAndroid (http://localhost:7357/dart_sdk.js:54659:26)
at Function.desc.get [as isAndroid] (http://localhost:7357/dart_sdk.js:4946:15)
at auth_controls._AuthControlsState.new.facebookSign (http://localhost:7357/packages/youfeel/features/auth/presentation/widgets/auth_controls.dart.lib.js:411:35)
at facebookSign.next (<anonymous>)
at runBody (http://localhost:7357/dart_sdk.js:37126:34)
at Object._async [as async] (http://localhost:7357/dart_sdk.js:37157:7)
at auth_controls._AuthControlsState.new.facebookSign (http://localhost:7357/packages/youfeel/features/auth/presentation/widgets/auth_controls.dart.lib.js:409:20)
at ink_well._InkResponseStateWidget.new.<anonymous> (http://localhost:7357/packages/youfeel/features/auth/presentation/widgets/auth_controls.dart.lib.js:387:744)
at ink_well._InkResponseState.new.[_handleTap] (http://localhost:7357/packages/flutter/src/material/icon_button.dart.lib.js:44754:21)
at http://localhost:7357/packages/flutter/src/material/icon_button.dart.lib.js:44854:734
at tap.TapGestureRecognizer.new.invokeCallback (http://localhost:7357/packages/flutter/src/gestures/recognizer.dart.lib.js:197:18)
at tap.TapGestureRecognizer.new.handleTapUp (http://localhost:7357/packages/flutter/src/gestures/tap.dart.lib.js:355:40)
at tap.TapGestureRecognizer.new.[_checkUp] (http://localhost:7357/packages/flutter/src/gestures/tap.dart.lib.js:186:12)
at tap.TapGestureRecognizer.new.handlePrimaryPointer (http://localhost:7357/packages/flutter/src/gestures/tap.dart.lib.js:136:23)
at tap.TapGestureRecognizer.new.handleEvent (http://localhost:7357/packages/flutter/src/gestures/recognizer.dart.lib.js:443:16)
at pointer_router.PointerRouter.new.[_dispatch] (http://localhost:7357/packages/flutter/src/gestures/pointer_router.dart.lib.js:71:9)
at http://localhost:7357/packages/flutter/src/gestures/pointer_router.dart.lib.js:96:26
at LinkedMap.new.forEach (http://localhost:7357/dart_sdk.js:24375:11)
at pointer_router.PointerRouter.new.[_dispatchEventToRoutes] (http://localhost:7357/packages/flutter/src/gestures/pointer_router.dart.lib.js:94:29)
at pointer_router.PointerRouter.new.route (http://localhost:7357/packages/flutter/src/gestures/pointer_router.dart.lib.js:89:37)
at binding$5.WidgetsFlutterBinding.new.handleEvent (http://localhost:7357/packages/flutter/src/gestures/binding.dart.lib.js:166:26)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (http://localhost:7357/packages/flutter/src/gestures/binding.dart.lib.js:154:24)
at binding$5.WidgetsFlutterBinding.new.[_handlePointerEvent] (http://localhost:7357/packages/flutter/src/gestures/binding.dart.lib.js:131:14)
at binding$5.WidgetsFlutterBinding.new.[_flushPointerEventQueue] (http://localhost:7357/packages/flutter/src/gestures/binding.dart.lib.js:105:34)
at binding$5.WidgetsFlutterBinding.new.[_handlePointerDataPacket] (http://localhost:7357/packages/flutter/src/gestures/binding.dart.lib.js:96:65)
at Object._invoke1 (http://localhost:7357/dart_sdk.js:167217:7)
at _engine.EngineWindow.new.invokeOnPointerDataPacket (http://localhost:7357/dart_sdk.js:164059:15)
at _engine.PointerBinding.__.[_onPointerData] (http://localhost:7357/dart_sdk.js:142845:24)
at http://localhost:7357/dart_sdk.js:143197:26
at http://localhost:7357/dart_sdk.js:143162:16
at http://localhost:7357/dart_sdk.js:142934:11