Close the keyboard when use opens activity menu (#4673)
--------- Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
parent
0e590a37ff
commit
407ea6254e
1 changed files with 1 additions and 0 deletions
|
|
@ -2333,6 +2333,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
ValueNotifier<bool> showActivityDropdown = ValueNotifier(false);
|
||||
void toggleShowDropdown() async {
|
||||
if (mounted) {
|
||||
inputFocus.unfocus();
|
||||
showActivityDropdown.value = !showActivityDropdown.value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue