Skip to content

Commit

Permalink
fix: Dropdown focused behavior (#46)
Browse files Browse the repository at this point in the history
Authored-by: Osman <[email protected]>
  • Loading branch information
ahmed-osman3 authored and thelukewalton committed Jun 10, 2024
1 parent de8ac28 commit 1930723
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 @@ -402,7 +402,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 1930723

Please sign in to comment.