fancy_dialog: ^1.0.4 copied to clipboard
Custom Alert Dialog,inspired from FancyGifDialog for android,the new thing is that you can choose between 2 themes Fancy and Flat and you can load images and Gif from your assets.
Fancy Flutter Alert Dialog #
Pure Dart and Flutter package for Android,IOS and Web
A flutter Package to show custom alert Dialog,you can choose between two themes 'Fancy' and 'Flat'
The package is available in fancy_dialog
Import the Package #
add this dependencies to your app
dependencies: fancy_dialog: ^1.0.1
Use the Package #
add this import statement
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", ) )
descreption are required
and the rest of the parameters are :
okFun: the function to be called when the user press Ok button (positive button)
cancelFun: the function to be called when the user press cancel button (negative button)
cancelColor: the color of the negative button, by default it's
oklColor: the color of the positive button, by default it's
ok: the text of the positive button, by default it's 'OK !'
cancel: the text of the negative button, by default it's 'cancel'
animationType: The type of the animation, there are 4 types,which are :
FancyAnimation.LEFT_RIGHTthe default one
gifpath: the path for the image or the GIF to be displayed,or you can choose between 6 Gifs the package provides :
FancyGif.MOVE_FORWARDthe default one
theme: Fancy or Flat
The dialog will be dissmised by default when the user click Ok or cancel, DON'T ADD
Feel free to contribute,report a bug or to suggest a feature
Thank you :)