AntdScrollable class

Inheritance

Constructors

AntdScrollable({Key? key, bool vertical = true, bool reversed = false, AntdScrollController? controller, ScrollPhysics? physics = const BouncingScrollPhysics(), DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollBehavior? scrollBehavior, double cacheExtent = 1.5, CacheExtentStyle cacheExtentStyle = CacheExtentStyle.viewport, List<Widget>? slivers, Duration? throttle, double? edgeThreshold, AntdOnScrollEdge? onEdgeReached})
const

Properties

anchor → double?
锚点
finalinherited
cacheExtent → double
预渲染区域大小
finalinherited
cacheExtentStyle → CacheExtentStyle
预渲染区域计算方式
finalinherited
controller → AntdScrollController?
控制器
finalinherited
dragStartBehavior → DragStartBehavior
拖动开始行为
finalinherited
edgeThreshold → double?
触边阈值 (0-1表示百分比)
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onEdgeReached → AntdOnScrollEdge?
当触碰到边界时的回调
finalinherited
physics → ScrollPhysics?
滚动物理效果
finalinherited
reversed → bool
是否反向滚动
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior → ScrollBehavior?
滚动行为
finalinherited
shrinkWrap → bool?
自动扩展高度
finalinherited
slivers → List<Widget>?
子组件
finalinherited
style → AntdStyle?
样式
finalinherited
styleBuilder → AntdStyleBuilder<AntdStyle, AntdScrollable>?
动态样式
finalinherited
throttle → Duration?
滚动事件节流时长
finalinherited
vertical → bool
滚动方向
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) → AntdEmptyStyle
override
getFinalStyle(BuildContext context, AntdStyle style, AntdMapToken token) → AntdStyle
inherited
getInputStyle(BuildContext context) → AntdStyle?
inherited
getStyle(BuildContext context) → AntdStyle
inherited
getStyleBuilder(BuildContext context) → AntdStyleBuilder<AntdStyle, AntdScrollable>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) → AntdStyleBuilder<AntdStyle, AntdScrollable>?
inherited
getWidget(BuildContext context) → AntdScrollable
override
margeStyle(AntdStyle defaultStyle, AntdStyle? style) → AntdStyle
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