AntdActionSheet class

@t 动作面板 @g 反馈 @o 98 @d 从底部弹出的动作菜单面板。 @u 由用户操作触发,提供一组与当前场景操作相关的两个或多个选项,让用户在不离场的情况下完成操作。

Inheritance

Constructors

AntdActionSheet.new({Key? key, AntdActionSheetStyle? style, AntdStyleBuilder<AntdActionSheetStyle, AntdActionSheet>? styleBuilder, VoidCallback? onClosed, VoidCallback? onOpened, VoidCallback? onMaskTap, bool? dismissOnMaskTap = true, AntdMaskOpacity? opacity, bool? showMask = true, required List<AntdSheetAction> actions, Widget? cancelText, bool? dismissOnAction = true, Widget? extra, AntdActionCallback? onAction, bool safeArea = true, AntdActionSheetAnimation? animation})
const

Properties

actions List<AntdSheetAction>
面板选项列表
final
animation AntdActionSheetAnimation?
动作面板动画
final
avoidKeyboard bool
当底部弹出式 避免键盘遮挡
finalinherited
builder AntdMaskBuilder<AntdActionSheetState>?
内容
finalinherited
cancelText Widget?
取消按钮文字,如果设置为空则不显示取消按钮
final
closeIcon Widget?
自定义关闭按钮图标
finalinherited
dismissOnAction bool?
点击选项后是否关闭
final
dismissOnMaskTap bool?
点击背景板是否关闭,mask为true才有效
finalinherited
extra Widget?
顶部的额外区域
final
hashCode int
The hash code for this object.
no setterinherited
hole AntdMaskHole?
镂空的区域
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layerType String
no setteroverride
onAction AntdActionCallback?
点击选项时触发,禁用或加载状态下不会触发
final
onClosed VoidCallback?
完全关闭后触发
finalinherited
onMaskTap VoidCallback?
点击蒙层自身触发,mask为true才有效
finalinherited
onOpened VoidCallback?
完全展示后触发
finalinherited
opacity AntdMaskOpacity?
透明度,mask为true才有效
finalinherited
position AntdPosition
弹出位置
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeArea bool
安全区
final
showMask bool?
是否显示背景蒙版
finalinherited
style AntdActionSheetStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdActionSheetStyle, AntdActionSheet>?
动态样式
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
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
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) AntdActionSheetStyle
override
getFinalStyle(BuildContext context, AntdActionSheetStyle style, AntdMapToken token) AntdActionSheetStyle
inherited
getInputStyle(BuildContext context) AntdActionSheetStyle?
inherited
getStyle(BuildContext context) AntdActionSheetStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdActionSheetStyle, AntdActionSheet>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdActionSheetStyle, AntdActionSheet>?
override
getWidget(BuildContext context) AntdActionSheet
override
margeStyle(AntdActionSheetStyle defaultStyle, AntdActionSheetStyle? style) AntdActionSheetStyle
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open<T>() Future<T?>
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, int wrapWidth = 65}) 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

Static Methods

show<T>(List<AntdSheetAction> actions, {Key? key, Widget? cancelText, bool? dismissOnAction = true, Widget? extra, AntdActionCallback? onAction, AntdActionSheet? sheet}) Future<T?>