You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no constant named 'suspending' in 'AppLifecycleState'.
Try correcting the name to the name of an existing constant, or defining a constant named 'suspending'.
counter example main.dart
line 116
///Handle app lifecycle events, almost the same as [update] function
Upd<Model, Message> lifeCycleUpdate(AppLifecycleState appState, Model model) {
switch (appState) {
case AppLifecycleState.inactive:
case AppLifecycleState.paused:
case AppLifecycleState.suspending:
//case AppLifecycleState.detached:
return Upd(model.copyWith(autoIncrement: false));
case AppLifecycleState.resumed:
default:
return Upd(model);
}
}
I'm going to try replacing suspending with detached but please let me know what you think.
The text was updated successfully, but these errors were encountered:
@nyck33 Thanks for the bringing it up.
Yes, AppLifecycleState.suspending should be replaced with AppLifecycleState.detached and display1 -> headline1.
Please open a PR if you don't mind.
counter example main.dart
line 116
I'm going to try replacing
suspending
withdetached
but please let me know what you think.The text was updated successfully, but these errors were encountered: