fix: remove keyboard when tap outside text field (#4235)

This commit is contained in:
Yijing Huang
2023-12-28 18:46:10 -07:00
committed by GitHub
parent 54fcc4ac5b
commit 5cede74c89
2 changed files with 7 additions and 2 deletions

View File

@ -85,6 +85,11 @@ class _GroupCardHeaderState extends State<GroupCardHeader> {
),
maxLines: 1,
style: titleTextStyle,
onTapOutside: (_) => context.read<BoardBloc>().add(
// group header switch from TextField to Text
// group name won't be changed
BoardEvent.endEditingHeader(widget.groupData.id, null),
),
);
}