move_to_background 1.0.1-nullsafety.1 copy "move_to_background: ^1.0.1-nullsafety.1" to clipboard
move_to_background: ^1.0.1-nullsafety.1 copied to clipboard

outdated

Flutter plugin for sending application to background. Send your app to the background with one line of code.

move_to_background #

Flutter plugin for sending mobile applications to background. Supports iOS and Android.

Getting Started #

Install it (pubspec.yaml) #

move_to_background: <latest>

Import it #

import 'package:move_to_background/move_to_background.dart';

Use it #

MoveToBackground.moveTaskToBack();

Useful Scenario #

Use with WillPopScope to send your application to the background when the user attempts to exit the app.

WillPopScope(
  child: MaterialApp(...),
  onWillPop: () async {
    MoveToBackground.moveTaskToBack();
    return false;
  },
);

Note about using it for iOS #

Quitting your application or sending it to the background programmatically is a violation of the iOS Human Interface Guidelines, which usually doesn't bode well for getting through the review process. Keep that in mind.

171
likes
0
pub points
97%
popularity

Publisher

unverified uploader

Flutter plugin for sending application to background. Send your app to the background with one line of code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on move_to_background