- Information AlertBox
- Confirmation AlertBox
- Delete Item AlertBox
- Flutter Android
- Flutter iOS
- Flutter web
- Flutter desktop
Add flutter_platform_alertbox: <latest_version> to your pubspec.yaml dependencies. And import it:
import 'package:flutter_platform_alertbox/flutter_platform_alertbox.dart';
FlutterPlatFormAlertBox().informationDialogBox(
context: context,
title: "Alert Title",
body: "This is alert body",
heading: "This is alert heading"
);
FlutterPlatFormAlertBox().confirmationDialogBox(
context: context,
title: "Alert Title",
content: "This is alert body",
cancelText: "Cancel",
submitText: "Submit",
isCancelable: true,
onSubmit: ()
{
debugPrint("submit click");
}
);
FlutterPlatFormAlertBox().deleteItemDialogBox(
context: context,
title: "Are you sure to want to delete this item",
cancelText: "Cancel",
submitText: "Delete",
isCancelable: true,
onSubmit: ()
{
debugPrint("submit click");
}
);
| Android |
IOS |
| [alert_android.gif] |
[alert_ios.gif] |
Android Screenshot #
| Information |
Confirmation |
Delete |
| [info_android.png] |
[confirm_android.png] |
[delete_android.png] |
| Information |
Confirmation |
Delete |
| [info_ios.png] |
[confirm_ios.png] |
[delete_ios.png] |