Skip to content
pubscout

move_to_background

1.0.2, released 6 years ago by an unverified publisher

Flutter plugin for sending mobile applications to background.

WASM-ready
$ flutter pub add move_to_background
Source repository

What it does

Provides a method to programmatically send the application to the background on Android and iOS. It can be used alongside WillPopScope to prevent exiting the app when the back button is pressed.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to send the application to the background instead of closing it when the back button is pressed.
  • Targeting Android and iOS platforms.

Skip it when

  • Building for iOS if you want to strictly adhere to Apple's Human Interface Guidelines regarding background behavior.
  • You need complex navigation or lifecycle management.

Strengths

  • Simple one-line API usage.
  • Supports both Android and iOS.

Weaknesses

  • Programmatically sending an app to the background on iOS violates Apple's Human Interface Guidelines, which may cause app store review issues.
  • Limited to a single specific function.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

not documented

MoveToBackground.moveTaskToBack();

Alternatives

Packages that do the same job and could replace move_to_background.