Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when call EasyHub.dismiss() immediately after EasyHub.showHub() #6

Open
623637646 opened this issue Mar 17, 2022 · 1 comment

Comments

@623637646
Copy link

Demo code

EasyHub.showHub();
await EasyHub.dismiss();

Crash:

Exception has occurred.
NoSuchMethodError (NoSuchMethodError: The method 'pop' was called on null.
Receiver: null
Tried calling: pop(Closure: () => Null))

Screenshot 2022-03-17 at 9 16 00 PM

@623637646
Copy link
Author

623637646 commented Mar 17, 2022

EasyHub.showHub();
await doSomethings();  // sometimes this call finishs in current run loop without "wait"
await EasyHub.dismiss();

The reason why I need to call EasyHub.dismiss() immediately after EasyHub.showHub() is that sometimes the doSomethings() return very fast in current run loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant