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

Awaiting doesn't work as expected #218

Open
JudahMcNicholl opened this issue Aug 7, 2024 · 0 comments
Open

Awaiting doesn't work as expected #218

JudahMcNicholl opened this issue Aug 7, 2024 · 0 comments

Comments

@JudahMcNicholl
Copy link

I've noticed that
await AppSettings.openAppSettings(type: AppSettingsType.notification)
Doesn't wait for the pop back of the setting page

A work around for now is to listen to the lifecycle of the app with

with WidgetsBindingObserver

@OverRide
didChangeAppLifecycleState(AppLifecycleState state) {
switch (state) {
case AppLifecycleState.resumed:
//Do check in here for updated value
break;
case AppLifecycleState.inactive:
break;
case AppLifecycleState.paused:
break;
case AppLifecycleState.detached:
break;
case AppLifecycleState.hidden:
break;
}
}

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