mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 11:58:50 +00:00
fix: mention overlay unfocus
This commit is contained in:
@ -253,7 +253,12 @@ class __WriteMessageWidget extends State<WriteMessageWidget> {
|
|||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
onSubmitted: (_) => _sendMessage(context),
|
onSubmitted: (_) => _sendMessage(context),
|
||||||
onTapOutside: (event) => _focusNode.unfocus(),
|
onTapOutside: (event) {
|
||||||
|
// only unfocus if the overlay entry is null
|
||||||
|
if (_entry == null) {
|
||||||
|
_focusNode.unfocus();
|
||||||
|
}
|
||||||
|
},
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: t.stream.chat.write.label,
|
labelText: t.stream.chat.write.label,
|
||||||
contentPadding: EdgeInsets.symmetric(vertical: 4),
|
contentPadding: EdgeInsets.symmetric(vertical: 4),
|
||||||
|
Reference in New Issue
Block a user