added unfocus when tapping outside textfield
This commit is contained in:
1 parent
42574583ed
commit
339d402422
2 files changed
+29
-31
No files matched your search
@@ -156,6 +156,9 @@ class _ChatTextfieldState extends State<ChatTextfield> {
|
||||
}
|
||||
setDraft(text);
|
||||
},
|
||||
onTapOutside: (PointerDownEvent event) {
|
||||
FocusScope.of(context).requestFocus(FocusNode());
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
|
||||
Reference in new issue
Block a user