send_to_background 0.0.1 copy "send_to_background: ^0.0.1" to clipboard
send_to_background: ^0.0.1 copied to clipboard

send app to background

SendToBackground #

A Flutter plugin to send your app to background.

Installing #

Add send_to_background to your pubspec.yaml file:

dependencies:
  send_to_background:
    git:
      url: https://github.com/gkdgo/send_to_background.git

Import send_to_background in files that it will be used:

import 'package:send_to_background/send_to_background.dart';

Usage #

import 'package:flutter/material.dart';
import 'package:send_to_background/send_to_background.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('sendToBackground'),
        ),
        body: Center(
          child: ElevatedButton(
            child: const Icon(Icons.arrow_back),
            onPressed: () {
              SendToBackground.sendToBackground();
            },
          ),
        ),
      ),
    );
  }
}
7
likes
0
points
2.15k
downloads

Publisher

unverified uploader

Weekly Downloads

send app to background

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on send_to_background