fancy_dialog
Android용 FancyGifDialog를 영감으로 한 사용자 정의 경고 대화 상자입니다. 새로운 기능은 두 가지 테마인 Fancy와 Flat 중에서 선택할 수 있으며, 자산에서 이미지와 GIF를 로드할 수 있습니다.
잘 디자인된 경고 대화 상자를 표시하는 Flutter 패키지
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Hits
Build Status Coverage Status GitHub release (latest by date)
GitHub stars Twitter Follow
Pure Dart and Flutter package for Android,IOS and Web
https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/flutter/flutter.png
https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/dart/dart.png
A flutter Package to show custom alert Dialog,you can choose between two themes 'Fancy' and 'Flat'
The package is available in fancy_dialog
add this dependencies to your app
dependencies: fancy_dialog: ^1.0.4
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 title and 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 Colors.grey
oklColor : the color of the positive button, by default it's Colors.pink
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_RIGHT the default oneFancyAnimation.RIGHT_LEFTFancyAnimation.TOP_BOTTOMFancyAnimation.BOTTOM_TOPgifpath : the path for the image or the GIF to be displayed,or you can choose between 6 Gifs the package provides :
FancyGif.MOVE_FORWARD the default oneFancyGif.CHECK_MAILFancyGif.FUNNY_MANFancyGif.PLAY_MEDIAFancyGif.SUBMITFancyGif.SHAREtheme : Fancy or Flat
FancyTheme.FANCYFancyTheme.FLATThe dialog will be dissmised by default when the user click Ok or cancel, DON'T ADD
Navigator.of(context).pop() to okFun or cancelFun
https://github.com/DokkarRachidReda/Fancy-Flutter-Alert-Dialog/blob/master/Screenshots/1.gifhttps://github.com/DokkarRachidReda/Fancy-Flutter-Alert-Dialog/blob/master/Screenshots/2_flat.gif
https://github.com/DokkarRachidReda/Fancy-Flutter-Alert-Dialog/blob/master/Screenshots/3.gifhttps://github.com/DokkarRachidReda/Fancy-Flutter-Alert-Dialog/blob/master/Screenshots/4_flat.gif
Feel free to contribute,report a bug or to suggest a feature
Thank you :)