Forked from https://github.com/davigmacode/flutter_smart_select, updated legacy code, migrated to null safety and more. AwesomeSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
Occasionally tapping the tile 2 to 3 times to open bottom sheet throws Unhandled Exception: A S2Choices<Abc?> was used after being disposed. Once you have called dispose() on a S2Choices<Abc?>, it can no longer be used.
The culprit is S2Choices.loadfinally { await Future.delayed(delay ?? const Duration(milliseconds: 300), () { task = null; notifyListeners(); }); }
Occasionally tapping the tile 2 to 3 times to open bottom sheet throws Unhandled Exception: A S2Choices<Abc?> was used after being disposed. Once you have called dispose() on a S2Choices<Abc?>, it can no longer be used. The culprit is
S2Choices.load
finally { await Future.delayed(delay ?? const Duration(milliseconds: 300), () { task = null; notifyListeners(); }); }
It seems to be the same issue in original repository: https://github.com/davigmacode/flutter_smart_select/issues/74
Log
E/flutter ( 7710): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: A S2Choices