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

Unhandled Exception: type 'Null' is not a subtype of type 'String' #4

Closed
jackiepapers opened this issue Apr 7, 2021 · 7 comments
Closed

Comments

@jackiepapers
Copy link

If I click outside of the dropdown instead of selecting an item this error is returned:
[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'String' #0 _SelectFormFieldState._showSelectFormFieldMenu (package:select_form_field/select_form_field.dart:516:12) <asynchronous suspension>

@papakay
Copy link

papakay commented May 4, 2021

I have similar error too! Please can you kindly provide a solution to this.

@papakay
Copy link

papakay commented May 4, 2021

Hi @jackiepapers, please have you found a work around to this?

@jackiepapers
Copy link
Author

jackiepapers commented May 4, 2021 via email

@papakay
Copy link

papakay commented May 4, 2021

In my own case it causes the app to freeze and I have to restart the app. I'm using Flutter 2.0.5

@jackiepapers
Copy link
Author

jackiepapers commented May 4, 2021 via email

@pjvillanueva
Copy link

anyone solved this problem?

@jackiepapers
Copy link
Author

I added this line if (lvPicked == null) return; in the select_form_field/select_form_field.dart file after line 516 code block.

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

3 participants