AntdIcon class

@t 图标 @g 通用 @o 98 @d 基于AntdBox实现,是对于原生Icon的封装,多了一个AntdIconStyle方便复用 @u 简洁清晰的表达你的意图

Inheritance

Constructors

AntdIcon.new({Key? key, AntdIconStyle? style, AntdStyleBuilder<AntdIconStyle, AntdIcon>? styleBuilder, IconData? icon, Widget? child, bool row = true, VoidCallback? onTap})
const

Properties

child Widget?
和图标在一起的内容
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
图标
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap VoidCallback?
触摸后的回调
final
row bool
child和icon按行还是按列布局
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style AntdIconStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdIconStyle, AntdIcon>?
动态样式
finalinherited

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) AntdIconStyle
override
getFinalStyle(BuildContext context, AntdIconStyle style, AntdMapToken token) AntdIconStyle
inherited
getInputStyle(BuildContext context) AntdIconStyle?
inherited
getStyle(BuildContext context) AntdIconStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdIconStyle, AntdIcon>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdIconStyle, AntdIcon>?
override
getWidget(BuildContext context) AntdIcon
override
margeStyle(AntdIconStyle defaultStyle, AntdIconStyle? style) AntdIconStyle
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context, AntdIconStyle 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