move_to_background 0.1.0 copy "move_to_background: ^0.1.0" to clipboard
move_to_background: ^0.1.0 copied to clipboard

outdated

Flutter plugin for sending application to background.

move_to_background #

Flutter plugin for sending android application to background. Note that currently only android is supported.

Getting Started #

Install it (pubspec.yaml) #

move_to_background: ^0.1.0

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;
  },
);
170
likes
0
pub points
97%
popularity

Publisher

unverified uploader

Flutter plugin for sending application to background.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on move_to_background