appainter
appainter copied to clipboard
[BUG] DropdownButton stays highlighted after selecting an option and/or closing the dropdown
Platform
All platforms
Steps to Reproduce
- Select any dropdown
- Select an option or simply close the dropdown
Expected behaviour
The dropdown should not remain being highlighted
Actual behaviour
The dropdown remains highlighted
Additional Context
Related to this issue on Flutter https://github.com/flutter/flutter/issues/94605
Any update?
A workaround is set the focusColor to Colors.transparent
Any update?
This issue is coming from Flutter and I've linked the relevant issue on the Flutter repo. There's not much update until Flutter releases a new version to address this.
A workaround is set the focusColor to Colors.transparent
I wouldn't agree that this workaround is applicable as this will remove the highlight/focus behaviour.
As a workaround
onRowsPerPageChanged: (_) { FocusScope.of(context).requestFocus(FocusNode()); },
but only if user choose one of the options