DialogView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- Dialog
- DialogView
Constructors
- DialogView({Key? key, required Widget? child, bool isShowTitle = false, bool isConfirm = false, bool isLoad = false, bool fullScreen = true, String? content, String? title = "温馨提示", String? okHint = "确定", String? noHint = "取消", TouchTap? onOk, TouchTap? onNo, bool expanded = false, Color? backgroundColor, num? confirmHeight, num? titleHeight, num? horizontal, num? vertical, num? minHeight, num? titleSize, num? textSize, num? loadWidth, num? loadTop, num? top, Curve insetAnimationCurve = Curves.decelerate, Duration insetAnimationDuration = const Duration(milliseconds: 100)})
-
const
- DialogView.confirm({Key? key, Widget? child, bool isShowTitle = true, bool isConfirm = true, bool isLoad = false, bool fullScreen = false, String? title = "温馨提示", String? okHint = "确定", String? noHint = "取消", required String? content, required TouchTap? onOk, TouchTap? onNo, bool expanded = false, Color? backgroundColor, num? confirmHeight, num? titleHeight, num? horizontal, num? vertical, num? minHeight, num? titleSize, num? textSize, num? loadWidth, num? loadTop, num? top, Curve insetAnimationCurve = Curves.decelerate, Duration insetAnimationDuration = const Duration(milliseconds: 100)})
-
显示确定与取消
const
- DialogView.hint({Key? key, Widget? child, bool isShowTitle = true, bool isConfirm = false, bool isLoad = false, bool fullScreen = false, String? title = "温馨提示", String? okHint = "确定", String? noHint = "取消", required String? content, TouchTap? onOk, TouchTap? onNo, bool expanded = false, Color? backgroundColor, num? confirmHeight, num? titleHeight, num? horizontal, num? vertical, num? minHeight, num? titleSize, num? textSize, num? loadWidth, num? loadTop, num? top, Curve insetAnimationCurve = Curves.decelerate, Duration insetAnimationDuration = const Duration(milliseconds: 100)})
-
显示标题 内容
const
- DialogView.load({Key? key, Widget? child = const CircularProgressIndicator(), bool isShowTitle = false, bool isConfirm = false, bool isLoad = true, bool fullScreen = false, String? title, String? okHint, String? noHint, String? content = "加载中", TouchTap? onOk, TouchTap? onNo, bool expanded = false, Color? backgroundColor, num? confirmHeight, num? titleHeight, num? horizontal, num? vertical, num? minHeight, num? titleSize, num? textSize, num? loadWidth, num? loadTop, num? top, Curve insetAnimationCurve = Curves.decelerate, Duration insetAnimationDuration = const Duration(milliseconds: 100)})
-
const
Properties
- alignment → AlignmentGeometry?
-
How to align the Dialog.
finalinherited
- backgroundColor → Color?
-
The background color of the surface of this Dialog.
final
- child → Widget?
-
The widget below this widget in the tree.
final
- clipBehavior → Clip?
-
Controls how the contents of the dialog are clipped (or not) to the given
shape.
finalinherited
- confirmHeight → num?
-
final
- content → String?
-
final
- elevation → double?
-
The z-coordinate of this Dialog.
finalinherited
- expanded → bool
-
final
- fullScreen → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontal → num?
-
final
- insetAnimationCurve → Curve
-
The curve to use for the animation shown when the system keyboard intrudes
into the space that the dialog is placed in.
final
- insetAnimationDuration → Duration
-
The duration of the animation to show when the system keyboard intrudes
into the space that the dialog is placed in.
final
- insetPadding → EdgeInsets?
-
The amount of padding added to MediaQueryData.viewInsets on the outside
of the dialog. This defines the minimum space between the screen's edges
and the dialog.
finalinherited
- isConfirm → bool
-
final
- isLoad → bool
-
final
- isShowTitle → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadTop → num?
-
final
- loadWidth → num?
-
final
- minHeight → num?
-
final
- noHint → String?
-
final
- okHint → String?
-
final
- onNo → TouchTap?
-
final
- onOk → TouchTap?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The color used to paint a drop shadow under the dialog's Material,
which reflects the dialog's elevation.
finalinherited
- shape → ShapeBorder?
-
The shape of this dialog's border.
finalinherited
- surfaceTintColor → Color?
-
The color used as a surface tint overlay on the dialog's background color,
which reflects the dialog's elevation.
finalinherited
- textSize → num?
-
final
- title → String?
-
final
- titleHeight → num?
-
final
- titleSize → num?
-
final
- top → num?
-
final
- vertical → num?
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited