Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Error: type 'char' not found #13

Open
obiwanzenobi opened this issue Jul 25, 2022 · 3 comments
Open

Error: type 'char' not found #13

obiwanzenobi opened this issue Jul 25, 2022 · 3 comments

Comments

@obiwanzenobi
Copy link

I cannot compile app with fusionauth-dart-client. It throws a lot of errors in terminal output.
I tested version 1.36.0 from pub.dev and also directly from tag 1.36.8

fusionauth_dart_client:
    git:
      url: https://github.com/FusionAuth/fusionauth-dart-client
      ref: 1.36.8

I'm using flutter 3.0.5, dart 2.17
Here are a couple of them:

../../.pub-cache/git/fusionauth-dart-client-090ca757b8e8b8dcbf00669f1817511e0906caef/lib/src/FusionAuthDomain.dart:7396:3: Error: Type 'char' not found.
  char separator;
  ^^^^
../../.pub-cache/git/fusionauth-dart-client-090ca757b8e8b8dcbf00669f1817511e0906caef/lib/src/FusionAuthDomain.dart:35:13: Error: The parameter 'access_token' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifier.
      {this.access_token,
            ^^^^^^^^^^^^
../../.pub-cache/git/fusionauth-dart-client-090ca757b8e8b8dcbf00669f1817511e0906caef/lib/src/FusionAuthDomain.dart:36:12: Error: The parameter 'expires_in' can't have a value of 'null' because of its type 'num', but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifier.
      this.expires_in,
           ^^^^^^^^^^
../../.pub-cache/git/fusionauth-dart-client-090ca757b8e8b8dcbf00669f1817511e0906caef/lib/src/FusionAuthDomain.dart:37:12: Error: The parameter 'id_token' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifier.
      this.id_token,
           ^^^^^^^^

@mooreds
Copy link
Contributor

mooreds commented Aug 17, 2022

Hmmm. Did you end up solving this?

@obiwanzenobi
Copy link
Author

Unfortunately no. I end up integrating FusionAuth API

@mooreds
Copy link
Contributor

mooreds commented Aug 17, 2022

Thanks for the follow up.

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

No branches or pull requests

2 participants