DialogUtil 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

Operators

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

Static Methods

dismissLoading({int delay = 0}) Future<void>
popupMenu<T>(BuildContext context, List<T> items, PopupMenuItemSelected<T> onSelect, Widget child, IndexedWidgetBuilder itemBuilder, {double? offsetY, double? height, double? itemWidth, EdgeInsets? padding, PopupMenuPosition? position, Color? bgColor}) Widget
showBottom<T>(Widget child, {double? radius, Color? bgColor, bool enableDrag = true, bool dismissOnTouch = true}) Future<T?>
底部弹窗
showBottomList<T>(List<String> list, dynamic onItemClick(int), {double? radius, Color? bgColor, String cancelText = "取消", NullableIndexedWidgetBuilder? builder}) Future<T?>
showCenter<T>(Widget child, {bool dismissOnTouch = true, bool dismissOnBackPressed = true, Color? bgColor, double? radius, double width = 340, EdgeInsets? padding, bool fullscreen = false, Color? shadowColor}) Future<T?>
shadowColor 整个对话框的背景色,会铺面整个屏幕,包括状态栏、导航栏 bgColor 对话框内部容器的背景色
showConfirm<T>({Widget? child, String? title, String? content, String? leftBtnText, String? rightBtnText, VoidCallback? onLeftTap, VoidCallback? onRightTap, bool showClose = true, bool dismissOnTouch = true, Color? leftBtnBg, Color? rightBtnBg, Color? rightBtnColor, Color? contentColor, bool dismissOnBackPressed = true, Color? bgColor, double? radius, bool showCancelBtn = true, double? width}) Future<T?>
显示确认信息对话框
showLoading({String? msg, bool dismissOnTouch = true, bool dismissOnBackPressed = true}) → void