Fancy Flutter Alert Dialog
A flutter Package to show custom alert Dialog,you can choose between two themes ‘Fancy’ and ‘Flat’
The package is available in fancy_dialog
Usage
Import the Package
add this dependencies to your app
dependencies: fancy_dialog: ^1.0.1
Use the Package
add this import statement
import 'package:fancy_dialog/fancy_dialog.dart';
to show a Basic Dialog
showDialog(
context: context,
builder: (BuildContext context) => FancyDialog(
title: "Fancy Gif Dialog",
descreption: "This is descreption for fancy gif,you can load any image or gif to be displayed :), and you can choose between two themes Fancy and Flat",
)
)
the are required title and descreption
and the rest of the parameters are :
-
: the function to be called when the user press Ok button (positive button)okFun -
: the function to be called when the user press cancel button (negative button)cancelFun -
cancelColor: the color of the negative button, by default it'sColors.grey -
oklColor: the color of the positive button, by default it'sColors.pink -
: the text of the positive button, by default it’s ‘OK !’ok -
: the text of the negative button, by default it’s ‘cancel’cancel -
: The type of the animation, there are 4 types,which are :animationTypethe default oneFancyAnimation.LEFT_RIGHTFancyAnimation.RIGHT_LEFTFancyAnimation.TOP_BOTTOMFancyAnimation.BOTTOM_TOP
-
: the path for the image or the GIF to be displayed,or you can choose between 6 Gifs the package provides :gifpaththe default oneFancyGif.MOVE_FORWARDFancyGif.CHECK_MAILFancyGif.FUNNY_MANFancyGif.PLAY_MEDIAFancyGif.SUBMITFancyGif.SHARE
-
: Fancy or FlatthemeFancyTheme.FANCYFancyTheme.FLAT
The dialog will be dissmised by default when the user click Ok or cancel, DON’T ADD
Navigator.of(context).pop() to okFun or cancelFun
ScreenShots




Contribution
Feel free to contribute, to report a bug to suggest a feature, Thank you 🙂
Source Code
Please Visit Fancy Flutter Alert Dialog Source Code at GitHub




