flutter_dropdown_below
flutter_dropdown_below copied to clipboard
Crash occurs when not choosing a value
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?
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