added unfocus when tapping outside textfield
This commit is contained in:
@ -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