Dialogs class

Constructors

Dialogs({DialogOptions? options})

Properties

ACTION_DANGER_COLOR Color
getter/setter pair
ACTION_MIN_WIDTH double
getter/setter pair
CONTENT_MIN_HEIGHT double
getter/setter pair
CONTENT_MIN_WIDTH double
getter/setter pair
GRID_SELECTED_BACKGROUND Color
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
options DialogOptions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

actionPanel(UpdatableContext uc, List<Widget> items) Widget
alert({required String title, required String message, TextAlign? align = TextAlign.center}) Future<bool?>
cancelAction(String label, {Color? color}) Widget
confirm({required String title, required String message, TextAlign? align = TextAlign.center}) Future<bool?>
dangerAction(String label, VoidCallback onTap, {Color? color}) Widget
input(HareEdit edit, {required String title, String? message, TextValidator? validator, double spacing = 8}) Future<String?>
input2(HareEdit edit, HareEdit secondEdit, {required String title, String? message, TextValidator? validator, TextValidator? secondValidator}) Future<({String first, String second})?>
inputDouble({double? value, required String title, String? label, String? message, double? minValue, double? maxValue, bool signed = true}) Future<double?>
inputInt({int? value, required String title, String? label, String? message, int? minValue, int? maxValue, bool signed = true}) Future<int?>
inputText({required String title, String? value, String? label, String? message, String? hint, String? tips, RegExp? allowExp, RegExp? denyExp, TextInputType? keyboardType, List<TextInputFormatter>? inputFormaters, TextValidator? validator, int? maxLines = 1, int? minLines, int minLength = 1, int maxLength = 255, bool allowEmpty = false, bool trim = false, bool? password, bool clearButton = false, InputBorder? border, bool? outlineBorder}) Future<String?>
makeAction(String label, VoidCallback onTap, {Color? color}) Widget
messageWidget(String message, {TextAlign? align = TextAlign.center}) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
okAction(UpdatableContext updatableContext, String label, {Color? color}) Widget
pickAction(List<XAction> items, {String? title, XAction? selected, Widget onItemView(XAction)?, Widget? onTitle(XAction)?, Widget? onSubtitle(XAction)?, Widget? onLeading(XAction)?, Widget? onTrailing(XAction)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, bool withOKCancel = false}) Future<XAction?>
pickGridValue<T>(List<T> items, {T? selected, Widget onItemView(T)?, Widget? onTitle(T)?, Widget? onHeader(T)?, Widget? onFooter(T)?, int columnCount = 0, double itemWidth = 80, double? itemHeight, double aspectRatio = 1.0, double verticalSpacing = 0.0, double horizontalSpacing = 0.0, EdgeInsets? padding, String? title, bool ok = false, bool cancel = false, List<Widget>? aboveWidgets, List<Widget>? belowWidgets}) Future<T?>
pickGridValueSet<T>(List<T> items, {Iterable<T>? selected, String? title, Widget onItemView(T, Set<T>)?, Widget? onTitle(T)?, Widget? onHeader(T)?, Widget? onFooter(T)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, int columnCount = 0, double itemWidth = 80, double? itemHeight, double aspectRatio = 1.0, double verticalSpacing = 0.0, double horizontalSpacing = 0.0, EdgeInsets? padding}) Future<Set<T>?>
pickInt({required int value, required int minValue, required int maxValue, required String label, required String title, int? divisions}) Future<int?>
pickIntRanges({required CloseRange value, required int minValue, required int maxValue, required String label, required String title, int? divisions}) Future<CloseRange?>
pickLabelValue<T>(List<LabelValue<T>> items, {T? selected, String? title, Widget onItemView(LabelValue<T>)?, Widget? onTitle(LabelValue<T>)?, Widget? onSubtitle(LabelValue<T>)?, Widget? onLeading(LabelValue<T>)?, Widget? onTrailing(LabelValue<T>)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, bool withOKCancel = false}) Future<LabelValue<T>?>
pickLabelValueSet<T>(List<LabelValue<T>> items, {Iterable<T>? selected, String? title, Widget onItemView(LabelValue<T>)?, Widget? onTitle(LabelValue<T>)?, Widget? onSubtitle(LabelValue<T>)?, Widget? onLeading(LabelValue<T>)?, Widget? onTrailing(LabelValue<T>)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, bool separated = true}) Future<Set<LabelValue<T>>?>
pickSegmentMulti<T>(List<LabelValue<T>> items, {String? title, String? message, Set<T>? selected, bool allowEmpty = false}) Future<Set<T>?>
pickSegmentSingle<T>(List<LabelValue<T>> items, {String? title, String? message, T? selected, bool allowEmpty = false}) Future<T?>
pickSegmentValue<T>(List<LabelValue<T>> items, {String? title, String? message, Set<T>? selected, bool multi = false, bool allowEmpty = true}) Future<Set<T>?>
pickValue<T>(List<T> items, {T? selected, String? title, Widget onItemView(T)?, Widget? onTitle(T)?, Widget? onSubtitle(T)?, Widget? onLeading(T)?, Widget? onTrailing(T)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, EdgeInsets? padding, bool separated = true, bool cancel = false, bool ok = false}) Future<T?>
pickValueSet<T>(List<T> items, {Iterable<T>? selected, String? title, Widget onItemView(T, Set<T>)?, Widget? onTitle(T)?, Widget? onSubtitle(T)?, Widget? onLeading(T)?, Widget? onTrailing(T)?, List<Widget>? aboveWidgets, List<Widget>? belowWidgets, EdgeInsets? padding, bool separated = true}) Future<Set<T>?>
pop<T>([T? result]) → void
primaryAction(String label, VoidCallback onTap, {Color? color}) Widget
showBuilder<T>(Widget builder(UpdatableContext uc), {EdgeInsets? insetPadding, AlignmentGeometry? alignment, dynamic clipBehavior = Clip.hardEdge, Color? backgroundColor, double? elevation, Color? shadowColor, Color? surfaceTintColor, Duration? insetAnimationDuration, Curve? insetAnimationCurve, ShapeBorder? shape, BoxConstraints? constraints}) Future<T?>
showChips<T>({required List<LabelValue<T>> items, Set<T>? selected, String? title, bool allowEmpty = true, bool multiSelect = false, List<Widget>? aboveWidgets, List<Widget>? belowWidgets}) Future<Set<T>?>
showColumn<T>({required UpdableBuilder onContent, UpdableBuilder? onTitle, UpdableBuilder? onActions, bool onOK(UpdatableContext)?, String? title, bool ok = false, bool cancel = false, bool isContentScrollable = false, EdgeInsets padding = const EdgeInsets.symmetric(vertical: 16, horizontal: 12), List<Widget>? aboveWidgets, List<Widget>? belowWidgets}) Future<T?>
showPage<T>(HarePage page, {bool flex = true, double minHeight = 120}) Future<T?>
titlePanel(UpdatableContext uc, {Widget? left, Widget? title, Widget? right, bool closable = true}) Widget
toString() String
A string representation of this object.
inherited

Operators

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