AntdSwipeAction class
@t 滑动操作 @g 反馈 @o 68 @d 列表的功能扩展。 @u 通过滑动操作来展示隐藏的功能菜单。
- Inheritance
Constructors
-
AntdSwipeAction({Key? key, AntdSwipeActionStyle? style, AntdStyleBuilder<
AntdSwipeActionStyle, AntdSwipeAction> ? styleBuilder, List<AntdSwipeItem> ? items, required Widget child, double? openThreshold = 0.01, Duration duration = const Duration(milliseconds: 200), bool? closeOnAction = true, AntdSwipeActionOnChange? onChange, AntdSwipeActionController? controller}) -
const
Properties
- child → Widget
-
内容
final
- closeOnAction → bool?
-
是否在点击操作按钮时自动归位
final
- controller → AntdSwipeActionController?
-
控制器
final
- duration → Duration
-
动画周期
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
AntdSwipeItem> ? -
操作按钮列表
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → AntdSwipeActionOnChange?
-
打开
final
- openThreshold → double?
-
滑动到达阈值直接打开
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AntdSwipeActionStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdSwipeActionStyle, AntdSwipeAction> ? -
动态样式
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) → AntdSwipeActionStyle -
override
-
getFinalStyle(
BuildContext context, AntdSwipeActionStyle style, AntdMapToken token) → AntdSwipeActionStyle -
inherited
-
getInputStyle(
BuildContext context) → AntdSwipeActionStyle? -
inherited
-
getStyle(
BuildContext context) → AntdSwipeActionStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdSwipeActionStyle, AntdSwipeAction> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdSwipeActionStyle, AntdSwipeAction> ? -
override
-
getWidget(
BuildContext context) → AntdSwipeAction -
override
-
margeStyle(
AntdSwipeActionStyle defaultStyle, AntdSwipeActionStyle? style) → AntdSwipeActionStyle -
override
-
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, 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