Skip to content

Commit 7e6985b

Browse files
committed
fix: adds translucent behavior to hide keyboard widget
1 parent 1f867fe commit 7e6985b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.1
4+
5+
- 📖  Changed: Adds `translucent` behavior to `HideKeyboardOnTouchOutside` so tap events are propagated properly.
6+
37
## 1.0.0
48

59
- 📖  Changed: Supports Flutter 3.22.0

lib/widgets/hide_keyboard_on_touch_outside.dart

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class HideKeyboardOnTouchOutside extends StatelessWidget {
88
@override
99
Widget build(BuildContext context) {
1010
return GestureDetector(
11+
behavior: HitTestBehavior.translucent,
1112
onTap: () {
1213
FocusManager.instance.primaryFocus?.unfocus();
1314
},

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: widgetkit
22
description:
33
A kit of widgets that are (almost) always needed in the different apps.
4-
version: 1.0.0
4+
version: 1.0.1
55
homepage: https://github.com/CodingAleCR/widgetkit
66

77
environment:

0 commit comments

Comments
 (0)