DialogUtil class

弹窗工具类

Constructors

DialogUtil.new()

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

hideLoading() → void
隐藏Loading
showActionSheet<T>({Widget? title, Widget? content, List<Widget>? actions, Widget? cancel, VoidCallback? onCancel, ValueChanged<int>? onConfirm}) Future<T?>
显示底部操作表
showAlertDialog<T>({Widget? title, Widget? content, Widget? cancel, Widget? confirm, VoidCallback? onCancel, VoidCallback? onConfirm, List<CupertinoDialogAction>? actions, EdgeInsets? contentPadding, bool showCancel = true, bool barrierDismissible = false, bool? showIOS}) Future<T?>
显示警告对话框
showDatePicker<T>({ValueChanged<DateTime>? onConfirm, VoidCallback? onCancel, Widget? cancel, Widget? confirm, bool useSafeArea = false, CupertinoDatePickerMode? mode, DateTime? initialDateTime, DateTime? minimumDate, DateTime? maximumDate, bool showDayOfWeek = false, bool use24hFormat = false, double itemExtent = _defaultItemExtent}) Future<T?>
显示日期选择器
showDialog<T>({Widget? title, Widget? content, Widget? cancel, Widget? confirm, EdgeInsets? titlePadding, EdgeInsets? contentPadding, EdgeInsets? actionPadding, VoidCallback? onConfirm, VoidCallback? onCancel, bool showCancel = true, List<Widget>? actions, Widget? foot, bool showClose = false, bool barrierDismissible = false, TextDirection? actionTextDirection, double actionSpacing = _defaultActionSpacing}) Future<T?>
显示对话框
showLoading({String? text, Widget builder(BuildContext)?}) → void
显示Loading
showModalBottom<T>({required Widget child, Widget? title, Widget? leading, List<Widget>? actions, Widget? bottom, EdgeInsetsGeometry? padding, double? minHeight, bool showTitle = true, bool isScrollControlled = true, bool useSafeArea = true, Color? backgroundColor}) Future<T?>
显示底部模态框
showPicker<T>({required List<Widget> children, ValueChanged<int>? onConfirm, VoidCallback? onCancel, Widget? cancel, Widget? confirm, bool useSafeArea = false, double itemExtent = _defaultItemExtent, int initialItem = 0, Widget selectionOverlay = const CupertinoPickerDefaultSelectionOverlay()}) Future<T?>
显示选择器
showToast(String text) → void
显示Toast提示