flutterpop 1.0.0 copy "flutterpop: ^1.0.0" to clipboard
flutterpop: ^1.0.0 copied to clipboard

FlutterPop: Simplify in-app notifications and popups with ease and customization in your Flutter applications.

flutterpop #

0 Mobile 1 Web

How to use #

Step 1: Add to pubspec.yaml

flutter pub add flutterpop

Step 2: Wrap your MaterialApp to PopBody

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

  @override
  Widget build(BuildContext context) {
    return PopBody( // Wrap your app by ToastaContainer
      child: MaterialApp(
        ...
      ),
    );
  }
}

Step 3: Start using

  void flarenotifyfunction(BuildContext context,
    {String? title, required String subtitle, required String toastertype}) {
  final toast = PopModel(
    height: title == null ? 30 : null,
    duration: const Duration(seconds: 5),
    title: (title != null && title.isNotEmpty) ? title : null,
    subtitle: (subtitle != null && subtitle.isNotEmpty) ? subtitle : null,
    status: (toastertype == 'S')
        ? PopNotifyStatus.success
        : (toastertype == 'F')
        ? PopNotifyStatus.failed
        : (toastertype == 'W')
        ? PopNotifyStatus.warning
        : PopNotifyStatus.info,
    darkMode: darkMode,
  );
  PopNotify(context).toast(toast);
}
3
likes
0
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

FlutterPop: Simplify in-app notifications and popups with ease and customization in your Flutter applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, marquee, plugin_platform_interface, provider

More

Packages that depend on flutterpop