quitter 1.0.0

Flutter Android iOS

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();
          },),
        ),
      ),
    );
  }
}
0
likes
70
pub points
49%
popularity

A plugin to quit both android and iOS gracefully

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

richardothayeb@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on quitter