flutter_platform_alertbox 0.0.4 copy "flutter_platform_alertbox: ^0.0.4" to clipboard
flutter_platform_alertbox: ^0.0.4 copied to clipboard

A package helps to display alert box with diffrent platforms like android, ios, windows and browsers

Flutter Platform AlertBox #

Features #

  • Information AlertBox
  • Confirmation AlertBox
  • Delete Item AlertBox

Supported platforms #

  • Flutter Android
  • Flutter iOS
  • Flutter web
  • Flutter desktop

Installation #

Add flutter_platform_alertbox: <latest_version> to your pubspec.yaml dependencies. And import it:

import 'package:flutter_platform_alertbox/flutter_platform_alertbox.dart';

How to Use #

information AlertBox #

 FlutterPlatFormAlertBox().informationDialogBox(
      context: context,
      title: "Alert Title",
      body: "This is alert body",
      heading: "This is alert heading"
  );

Confirmation AlertBox #

 FlutterPlatFormAlertBox().confirmationDialogBox(
      context: context,
      title: "Alert Title",
      content: "This is alert body",
      cancelText: "Cancel",
      submitText: "Submit",
      isCancelable: true,
      onSubmit: ()
      {
        debugPrint("submit click");
      }
    );

Delete Item AlertBox #

 FlutterPlatFormAlertBox().deleteItemDialogBox(
      context: context,
      title: "Are you sure to want to delete this item",
      cancelText: "Cancel",
      submitText: "Delete",
      isCancelable: true,
      onSubmit: ()
      {
        debugPrint("submit click");
      }
  );

Screenshot #

Android IOS
android ios

Android Screenshot #

Information Confirmation Delete
information confirm delete

iOS Screenshot #

Information Confirmation Delete
information confirmation dialog
1
likes
150
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A package helps to display alert box with diffrent platforms like android, ios, windows and browsers

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_platform_alertbox