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

Crash occurs when not choosing a value #6

Open
SirBepy opened this issue Sep 9, 2021 · 1 comment
Open

Crash occurs when not choosing a value #6

SirBepy opened this issue Sep 9, 2021 · 1 comment

Comments

@SirBepy
Copy link

SirBepy commented Sep 9, 2021

When I open the dropdown and chose a value, everything works just fine, but when I press on the side I get an exception

E/flutter (11559): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'FutureOr<_DropdownRouteResult<Object?>>'
And I get brought to this code snippet in flutter/packages/flutter/lib/src/widgets/navigator.dart

  @mustCallSuper
  void didComplete(T? result) {
    _popCompleter.complete(result ?? currentResult);
  }

After skipping the exception, I see everything still works fine, it closes the dropdown and it shows the previously selected value. Is there any way I can avoid this unhandled exception though?

@whatamelon
Copy link
Owner

Hi @SirBepy, I tested and issue was not seen. If this issue being remain, can you explain more specific? It's good to me you paste your code XD

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

2 participants