Skip to content

Commit 63ba374

Browse files
committed
fix: tapping outside search bar doesn't hide keyboard
1 parent 1a126d2 commit 63ba374

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/widgets/input/search_bar.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ class _BaseSearchBar extends StatelessWidget {
128128
hintText: hintText,
129129
hintStyle: hintStyle,
130130
),
131+
onTapOutside: (PointerDownEvent event) {
132+
FocusManager.instance.primaryFocus?.unfocus();
133+
},
131134
),
132135
),
133136
],

0 commit comments

Comments
 (0)