quitter 2.0.0-nullsafety copy "quitter: ^2.0.0-nullsafety" to clipboard
quitter: ^2.0.0-nullsafety copied to clipboard

PlatformAndroidiOS
outdated

A plugin to quit both android and iOS gracefully

Quitter #

This is a plugin to quit both Android and iOS gracefully

Installation #

First, add quitter as a dependency in your pubspec.yaml file.

quitter: ^1.0.0

Example #

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlatButton(child: Text('Press to quit'), onPressed: () {
            Quitter.quitApplication();
          },),
        ),
      ),
    );
  }
}
3
likes
110
pub points
61%
popularity

Publisher

unverified uploader

A plugin to quit both android and iOS gracefully

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on quitter