flutter_close_app 1.0.0 flutter_close_app: ^1.0.0 copied to clipboard
A simple and flexible Flutter close app plugin,(Android press 2 times to return to close, MacOS, iOS, Windows, Linux one-click close)一款灵活的 Flutter 关闭 App 插件,包含Android 按2次返回关闭,MacOS、iOS、Windows、Linux 一键关闭)
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_close_app
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_close_app: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_close_app/flutter_close_app.dart';