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

Unable to assign values to Additional Fields #502

Open
MarkAStepp opened this issue Sep 17, 2024 · 0 comments
Open

Unable to assign values to Additional Fields #502

MarkAStepp opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MarkAStepp
Copy link

Describe the bug
The additionalSignupFields seem to be assigned before the user is logged in. I tried to assign the defaultValue from information after a google authentication but nothing happens because the default values are still blank when it is assigned.

I can get to the additionalSignupData prior to it showing the additional fields card but I can't seem to be able to assign the values of the fields. it is showing that the additionalSignupData is null at the point it gets to onSwitchToAdditionalFields.

  onSwitchToAdditionalFields: (signupData) {
    signupData.additionalSignupData?.addAll({
      'first_name': google_given_name,
      'last_name': google_family_name,
    });
    return Future.value(null);
  },

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Be able to assign the additionalSignupData prior to showing the additional data card

Screenshots
If applicable, add screenshots to help explain your problem.

Information (please complete the following information):

  • Device: MacBookPro
  • Platform Web
  • Flutter version: Flutter (Channel stable, 3.24.2, on macOS 14.6.1 23G93 darwin-x64, locale en-US)
  • Package version flutter_login: ^5.0.0

Additional context
Sample code to make this happen would be helpful if I'm simply doing it incorrectly.

@MarkAStepp MarkAStepp added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant