Prepare for adding values to AppLifecycleState (#119954)

Prepare for adding values to AppLifecycleState
This commit is contained in:
Greg Spencer
2023-04-07 19:43:23 -07:00
committed by GitHub
parent 9f98f63585
commit ba097e2371
2 changed files with 11 additions and 0 deletions

View File

@@ -393,6 +393,11 @@ mixin SchedulerBinding on BindingBase {
case AppLifecycleState.paused:
case AppLifecycleState.detached:
_setFramesEnabledState(false);
// ignore: no_default_cases
default:
// TODO(gspencergoog): Remove this and replace with real cases once
// engine change rolls into framework.
break;
}
}

View File

@@ -3245,6 +3245,12 @@ class ClipboardStatusNotifier extends ValueNotifier<ClipboardStatus> with Widget
case AppLifecycleState.inactive:
case AppLifecycleState.paused:
// Nothing to do.
break;
// ignore: no_default_cases
default:
// TODO(gspencergoog): Remove this and replace with real cases once
// engine change rolls into framework.
break;
}
}