onInactive property

VoidCallback? onInactive
final

The application is in an inactive state and is not receiving user input.

On iOS, this state corresponds to an app or the Flutter host view running in the foreground inactive state. Apps transition to this state when in a phone call, responding to a TouchID request, when entering the app switcher or the control center, or when the UIViewController hosting the Flutter app is transitioning.

On Android, this corresponds to an app or the Flutter host view running in the foreground inactive state. Apps transition to this state when another activity is focused, such as a split-screen app, a phone call, a picture-in-picture app, a system dialog, or another window.

Apps in this state should assume that they may be AppLifecycleState.paused at any time.

Implementation

final VoidCallback? onInactive;