forked from Nexus/nexus
hopefully fix debugLocked error
This commit is contained in:
parent
50e1a8e4c7
commit
f4b2dcb824
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ class EmojiPickerButton extends HookConsumerWidget {
|
|||
),
|
||||
textController: controller
|
||||
..addListener(() {
|
||||
Navigator.of(context).pop();
|
||||
// Without this, there will sometimes be a debugLocked is not true error sometimes
|
||||
Future.delayed(Duration.zero, () {
|
||||
if (context.mounted) Navigator.of(context).pop();
|
||||
});
|
||||
onSelection?.call(controller.text);
|
||||
}),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue