PIDialogLayout class

弹窗

确认,选择等

Inheritance

Constructors

PIDialogLayout({Key? key, String? title, Widget? titleWidget, String? content, TextAlign contentAlign = TextAlign.center, Widget? contentWidget, Widget? extra, String? cancelText, Function? cancelTap, String? confirmText, ConfirmColors confirmTextColor = ConfirmColors.warn, Function? confirmTap, bool isPopDialogOnClickCancel = true, bool disableButtons = false, double? width, double? maxHeight, double? minHeight, bool isShowCancel = true})

Properties

cancelTap Function?
点击取消按钮之后的回调
final
cancelText String?
取消按钮的文字
final
confirmTap Function?
点击确认按钮之后的回调
final
confirmText String?
确认按钮的文字
final
confirmTextColor ConfirmColors
final
content String?
文本 内容主体 如果指定content文本主体,使用通用文本主体,否则使用contentWidget的widget作为主体
final
contentAlign TextAlign
contentText的align方式
final
contentWidget Widget?
Widget 内容主体
final
disableButtons bool
禁用所有的按钮
final
extra Widget?
位于主体内容下,按钮上方的widget
final
hashCode int
The hash code for this object.
no setterinherited
isPopDialogOnClickCancel bool
点击取消按钮,关闭dialog,默认开启
final
isShowCancel bool
是否展示取消按钮
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxHeight double?
content 的最大高度,超出后有滚动条,默认值300.rpx
final
minHeight double?
content 设置最小高度
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
文本标题 如果指定title文本标题,使用通用文本标题,否则使用titleWidget的widget作为标题
final
titleWidget Widget?
Widget标题
final
width double?
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