Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With your example I have Error: LateInitializationError: Field '_keycloakService' has not been initialized. #12

Open
bernypack opened this issue Oct 6, 2021 · 3 comments

Comments

@bernypack
Copy link

bernypack commented Oct 6, 2021

Hi,
I try your solution with the whole example project, my changes are only the KeycloakConfig informations with an https url.
Could you help me, I have theses errors :
Error: LateInitializationError: Field 'keycloakService' has not been initialized.
at Object.throw
[as throw] (http://localhost:57290/dart_sdk.js:5061:11)
at main._MyHomePageState.new.get [_keycloakService] (http://localhost:57290/packages/admin/main.dart.lib.js:259:37)
at main._MyHomePageState.new. (http://localhost:57290/packages/admin/main.dart.lib.js:272:13)
at Generator.next ()
at runBody (http://localhost:57290/dart_sdk.js:38659:34)
at Object._async [as async] (http://localhost:57290/dart_sdk.js:38690:7)
at http://localhost:57290/packages/admin/main.dart.lib.js:271:78
at binding$5.WidgetsFlutterBinding.new.[_invokeFrameCallback] (http://localhost:57290/packages/flutter/src/scheduler/binding.dart.lib.js:714:9)
at binding$5.WidgetsFlutterBinding.new.handleDrawFrame (http://localhost:57290/packages/flutter/src/scheduler/binding.dart.lib.js:691:37)
at http://localhost:57290/packages/flutter/src/scheduler/binding.dart.lib.js:600:14
at internalCallback (http://localhost:57290/dart_sdk.js:25436:11)

And print into my web page : TypeError: dart.global.Keycloak is not a constructor

Thank you

@gibahjoe
Copy link
Owner

gibahjoe commented Nov 6, 2021

What version of flutter do you use? And also note that this library is for flutter web only

@NantEiPhyoThet
Copy link

Having the same error here.
`Flutter 2.6.0-11.0.pre • channel dev •
https://github.com/flutter/flutter.git
Framework • revision 4b330ddbed (3 months ago) • 2021-09-16 17:29:58
-0700
Engine • revision 5b81c6d615
Tools • Dart 2.15.0 (build 2.15.0-116.0.dev)```

@mathieuMobizel
Copy link

Having same problem here. keycloakService not initialized. Example doesn't work :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants