Skip to content

Commit

Permalink
fix: Dropdown focused behavior (#46)
Browse files Browse the repository at this point in the history
Authored-by: Osman <AO3856@zebra.com>
  • Loading branch information
ahmed-osman3 authored and thelukewalton committed Jun 4, 2024
1 parent 05a32ac commit e4ed2fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/src/components/dropdown/dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,12 @@ class _DropdownItemState<T> extends State<_DropdownItem<T>> {
borderRadius: widget.rounded ? ZetaRadius.minimal : ZetaRadius.none,
),
),
side: const WidgetStatePropertyAll(BorderSide.none),
side: WidgetStateBorderSide.resolveWith((states) {
if (states.contains(WidgetState.focused)) {
return BorderSide(color: colors.borderPrimary);
}
return BorderSide.none;
}),
padding: const WidgetStatePropertyAll(EdgeInsets.zero),
elevation: const WidgetStatePropertyAll(0),
overlayColor: const WidgetStatePropertyAll(Colors.transparent),
Expand Down

0 comments on commit e4ed2fd

Please sign in to comment.