Dialogs 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
-
showDialog(BuildContext context, {Color backgroundColor = Colors.white, Color barrierColor = const Color(0x4d000000), BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)), String title = '', AlignmentGeometry? titleAlignment, String message = '', Widget? contentView, List<ButtonArgs> buttonArgs = const <ButtonArgs>[], OnButtonPressed? buttonPressed, bool isClickOutsideDismiss = false, OnDialogBuildCall? buildCall, EdgeInsetsGeometry? padding, Gravity? gravity, bool isShowClose = false, AlignmentGeometry alignment = Alignment.center, Color contentColor = const Color(0xe63B372C), double contentFontSize = 16, dynamic margin = const EdgeInsets.only(left: 20, right: 20), OnDialogDismissCall? dismissCall, bool isKeyboardAvoiding = false, Color dividerColor = const Color(0xffefefef), bool isAutoClose = true})
→ YYDialog
-
显示dialog(message优先级大于contentView)
context
widget context
backgroundColor
dialog背景颜色
barrierColor
dialog弹窗外背景
borderRadius
边框圆角大小
title
标题
titleAlignment
标题对齐方式
alignment
对齐方式
message
消息内容与contentView互斥,若设置message后contentView无效
contentView
内容自定义视图与message互斥
buttonArgs
按钮列表
buttonPressed
按钮事件回调
isClickOutsideDismiss
点击dialog外部是否消失
margin
dialog外边距
buildCall
构建完成回调
KeyboardAvoiding
true弹出dialog在软键盘之上
isAutoClose
是否自动关闭dialog,true-点击按钮时自动关闭dialog
-
showListDialog(BuildContext context, {Color backgroundColor = Colors.white, BorderRadius borderRadius = const BorderRadius.only(topLeft: Radius.circular(4), topRight: Radius.circular(4)), bool isClickOutsideDismiss = false, List<ListItem> items = const <ListItem>[], ListItem? selectItem, OnListItemPressed? itemPressed, OnDialogBuildCall? buildCall, Gravity? gravity, double dx = 0, double dy = 0, OnDialogDismissCall? dismissCall, String? title, Color? titleColor, double? titleSize, Widget? submit, String? submitText, Color? submitTextColor, double? submitTextSize, BorderRadiusGeometry submitBorderRadius = const BorderRadius.all(Radius.circular(5)), Color? submitBackgroundColor, bool isPreSelect = false, bool isMultiSelect = false, String leastSelectHintText = "", Color? listSplitLineColor, EdgeInsetsGeometry? listSplitLineMargin = const EdgeInsets.only(left: 20, right: 20), double itemHeight = 52, Color? itemTextColor, double? itemTextSize, EdgeInsetsGeometry? itemPadding = const EdgeInsets.only(left: 20, right: 20), Widget? multiSelectIcon, Widget? multiUnSelectIcon, Widget? singleSelectIcon, Widget? singleUnSelectIcon})
→ YYDialog
-
显示列表样式dialog
context
widget context
backgroundColor
dialog背景颜色
borderRadius
边框圆角大小
isClickOutsideDismiss
点击dialog外部是否消失
itemPressed
列表元素单击监听
dx
x方向上的偏移量
dy
y方向上的偏移量
buildCall
构建完成回调
title
标题
submit
提交按钮
submitText
提交按钮文本
isPreSelect
true-选择后需要由确认完成;false-选择直接完成;
-
showTopFloatingWidget({required BuildContext context, required Widget contentView, EdgeInsetsGeometry? margin, Color? backgroundColor})
→ FloatingPanel
-
显示顶部浮动组件
context
widget context
contentView
组件视图
margin
外边距
-
toString()
→ String
-
A string representation of this object.
inherited