SilAlertDialog class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
show(BuildContext context, {Widget? title, Widget? content, List<Widget>? actions})
→ void
-
@description: 弹窗的大小、样式
@param {}
@return {}
-
showAlert(BuildContext context, Widget content, {double? radius, bool? barrierDismissible, Color? backgroundColor, Color? barrierColor, EdgeInsets? insetPadding, AlignmentGeometry? alignment})
→ void
-
@description: 显示自定义弹窗
@param {
radius 边框切角
barrierDismissible false点击屏幕,弹窗不消失,默认false
backgroundColor 内容背景颜色
barrierColor 弹窗底部遮罩颜色
}
@return {*}
-
showAlertDialog(BuildContext context, SilAlertDialogData data, {Function? cancelFunc, Function? confrimFunc, Widget? titleWidget, Widget? contentWidget, List<Widget>? actionsWidget, TextAlign? contentTextAlign, bool? confrimCanPop = true, TextStyle? titleStyle, TextStyle? contentStyle, TextStyle? cancelButtonStyle, TextStyle? confrimButtonStyle})
→ void
-
@description: 显示弹窗(有图标,内容字号16,居中;其他,内容字号14,多行左对齐,两行居中)
@param {
data 弹窗数据
cancelFunc 取消操作
confrimFunc 确认操作
titleWidget 自定义标题
contentWidget 自定义内容
actionsWidget 自定义底部操作按钮
contentTextAlignment 内容对齐方式
titleStyle 标题文字样式
contentStyle 内容文字样式
cancelButtonStyle 取消按钮文字样式
confrimButtonStyle 确定按钮文字样式
confrimCanPop 点击确认按钮时是否退出,默认退出
}
@return {void}
-
showLoadingDialog(BuildContext context, {Color? indicatorColor, String? promptText, TextStyle? promptTextStyle, dynamic dismiss()?})
→ void
-
@description: 显示loading弹窗对话框
@param {}
@return {}