flutter_dropdown_below icon indicating copy to clipboard operation
flutter_dropdown_below copied to clipboard

Crash occurs when not choosing a value

Open SirBepy opened this issue 3 years ago • 1 comments

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?

SirBepy avatar Sep 09 '21 06:09 SirBepy

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

whatamelon avatar Nov 08 '21 13:11 whatamelon