abouttoclose 1.0.0+1

Flutter Android iOS web

Package created for giving an easy option for those who want to easily prevent the user of leaving the app by mistake.

Introduction #

Package created for the purpose of giving an easy option for those who want to easily prevent the user of leaving the app by mistake. AboutToClose help you to inform the user that he is about to close the app, so you give him a chance to tell if that's what he really wants to do.

Basic Usage #

You can use the package on the fly by simple wrapping the widget you want to prevent the behavior.

MaterialApp(
  title: 'Flutter Demo',
  theme: ThemeData(
    primarySwatch: Colors.blue,
    visualDensity: VisualDensity.adaptivePlatformDensity,
  ),
  home: AboutToClose(
    dialogType: DialogType.material,
    dialogTitle: 'You are about to close the app. Are you sure you want to leave?',
    child: MyHomePage(title: 'Flutter Demo Home Page'),
  ),
);

enter image description here

You can customize all types of things like if you want a Material or Cupertino Dialog to open, if you ant animation or the strings and styles there are shown.

0
likes
100
pub points
24%
popularity

Package created for giving an easy option for those who want to easily prevent the user of leaving the app by mistake.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rodrigobastosv@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on abouttoclose