FreeDialog class

Constructors

FreeDialog({required BuildContext context, String? title, String? desc, Widget? body, Widget? btnOk, Widget? btnCancel, String? btnOkText, Function? btnOkOnPress, Color? btnOkColor, String? btnCancelText, Function? btnCancelOnPress, Color? btnCancelColor, dynamic onDissmissCallback(DismissType type)?, bool dismissOnTouchOutside = true, AlignmentGeometry aligment = Alignment.center, AnimType animType = AnimType.SCALE, bool useRootNavigator = false, Duration? autoHide, bool keyboardAware = true, bool dismissOnBackKeyPress = true, double? width, BorderRadiusGeometry? dialogBorderRadius, Color? dialogBackgroundColor, BorderSide? borderSide, IWidget? iWidget})

Properties

aligment AlignmentGeometry
Alignment of the Dialog
final
animType AnimType
Anim Type can be { SCALE, LEFTSLIDE, RIGHSLIDE, BOTTOMSLIDE, TOPSLIDE }
final
autoHide Duration?
For Autho Hide Dialog after some Duration.
final
body Widget?
Create your own Widget for body, if this property is set title and description will be ignored.
final
borderSide BorderSide?
整个弹窗形状
final
btnCancel Widget?
Custom Btn Cancel
final
btnCancelColor Color?
final
btnCancelOnPress Function?
final
btnCancelText String?
Btn Cancel props
final
btnOk Widget?
Custom Btn OK
final
btnOkColor Color?
final
btnOkOnPress Function?
final
btnOkText String?
Btn OK props
final
context BuildContext
@required
final
desc String?
Set the description text of the dialog.
final
dialogBackgroundColor Color?
Custom background color for dialog
final
dialogBorderRadius BorderRadiusGeometry?
Border Radius for the Dialog
final
dismissOnBackKeyPress bool
Control if Dialog is dissmis by back key.
final
dismissOnTouchOutside bool
Barrier Dissmisable
final
hashCode int
The hash code for this object.
no setterinherited
isDissmisedBySystem bool
getter/setter pair
iWidget IWidget?
final
keyboardAware bool
键盘弹出内容被遮挡时是否跟随移动
final
onDissmissCallback → (dynamic Function(DismissType type)?)
Callback to execute after dialog get dissmised
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strings FreeString?
getter/setter pair
title String?
Dialog Title
final
useRootNavigator bool
使用根导航控制器而不是当前根导航控制器,可处理跨界面关闭弹窗。
final
width double?
Max with of entire Dialog.
final

Methods

dismiss() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited