cool_alert 1.0.1 copy "cool_alert: ^1.0.1" to clipboard
cool_alert: ^1.0.1 copied to clipboard

outdated

A Flutter package to display animated alert dialogs such as success, error, warning, confirm or even a loading dialog.

cool_alert #

A Flutter package to display animated alert dialogs

Usage #

To use this package, add cool_alert as a dependency in your pubspec.yaml file. And add this import to your file.

import 'package:cool_alert/cool_alert.dart';

Image #

Screenshot  Gif

Example #

CoolAlert.show(
   context: context,
   type: CoolAlertType.success,
   text: "Your transaction was successful!",
);

CoolAlert Class #

Attribute Data type Description Default Value
context BuildContext @required Null
type CoolAlertType @required - Type of alert dialog, ex: CoolAlertType.success for success dialogs Null
title String Set a custom title for dialog Based on the CoolAlertType selected
text String Set the description text of the dialog. Null
confirmBtnText String Text of confirm button 'Ok'
confirmBtnTap Function Function that handle click of confirm button () => Navigator.pop(context)
confirmBtnColor Color Color of confirm Button Theme.of(context).primaryColor
cancelBtnText String Text of cancel button 'Cancel'
cancelBtnTap Function Function that handle click of cancel button () => Navigator.pop(context)
barrierDismissible bool Dissmiss dialog on touch overlay true
animType CoolAlertAnimType Type of dialogue enter animation CoolAlertAnimType.scale
381
likes
0
pub points
97%
popularity

Publisher

unverified uploader

A Flutter package to display animated alert dialogs such as success, error, warning, confirm or even a loading dialog.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flare_flutter, flutter, vector_math

More

Packages that depend on cool_alert