AntdLoading class

@t 加载中 @g 反馈 @o 94 @d 用于页面和区块的加载中状态。 @u 页面局部处于等待异步数据或正在渲染过程时,合适的加载动效会有效缓解用户的焦虑。

Inheritance

Constructors

AntdLoading({Key? key, AntdLoadingStyle? style, AntdStyleBuilder<AntdLoadingStyle, AntdLoading>? styleBuilder, double? size, AntdColor? color, Widget? text, bool circular = false, Widget? child, bool? spinning = true})
const

Properties

child → Widget?
被包裹的widget
final
circular → bool
圆形加载中
final
color → AntdColor?
加点的颜色
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double?
加载指示器尺寸
final
spinning → bool?
是否是加载中
final
style → AntdLoadingStyle?
样式
finalinherited
styleBuilder → AntdStyleBuilder<AntdLoadingStyle, AntdLoading>?
动态样式
finalinherited
text → Widget?
加载中文案
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
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
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) → AntdLoadingStyle
override
getFinalStyle(BuildContext context, AntdLoadingStyle style, AntdMapToken token) → AntdLoadingStyle
inherited
getInputStyle(BuildContext context) → AntdLoadingStyle?
inherited
getStyle(BuildContext context) → AntdLoadingStyle
inherited
getStyleBuilder(BuildContext context) → AntdStyleBuilder<AntdLoadingStyle, AntdLoading>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) → AntdStyleBuilder<AntdLoadingStyle, AntdLoading>?
override
getWidget(BuildContext context) → AntdLoading
override
margeStyle(AntdLoadingStyle defaultStyle, AntdLoadingStyle? style) → AntdLoadingStyle
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context, AntdLoadingStyle style) → Widget
override
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