Skip to content

ente-io/move_to_background

This branch is 2 commits ahead of Sayegh7/move_to_background:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b862fe Β· Feb 21, 2025

History

30 Commits
Mar 5, 2021
Feb 21, 2025
Jul 23, 2019
Feb 21, 2025
Feb 21, 2025
Jul 24, 2019
Jul 23, 2019
Apr 29, 2020
Jul 23, 2019
Mar 28, 2021
Jul 23, 2019
Apr 14, 2020
Feb 21, 2025
Jul 23, 2019
Feb 21, 2025
Feb 21, 2025

Repository files navigation

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.

About

Flutter plugin for sending application to background

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 40.0%
  • Dart 29.2%
  • Ruby 18.6%
  • Objective-C 12.2%