appainter icon indicating copy to clipboard operation
appainter copied to clipboard

[BUG] DropdownButton stays highlighted after selecting an option and/or closing the dropdown

Open zeshuaro opened this issue 2 years ago • 4 comments

Platform

All platforms

Steps to Reproduce

  1. Select any dropdown
  2. 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

zeshuaro avatar Mar 02 '22 07:03 zeshuaro

Any update?

MegatronKing avatar Mar 21 '22 08:03 MegatronKing

A workaround is set the focusColor to Colors.transparent

MegatronKing avatar Mar 21 '22 08:03 MegatronKing

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.

zeshuaro avatar Mar 21 '22 09:03 zeshuaro

As a workaround onRowsPerPageChanged: (_) { FocusScope.of(context).requestFocus(FocusNode()); }, but only if user choose one of the options

oleksii-pimenov avatar Jan 20 '24 22:01 oleksii-pimenov