IconBox class

Inheritance
Available Extensions

Constructors

IconBox({Key? key, int maxLines = 1, TextOverflow overflow = TextOverflow.ellipsis, TextAlign textAlign = TextAlign.start, bool reversal = false, Axis direction = Axis.horizontal, double spacing = 4, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, double? size, String? heroTag, IconData? icon, Color? background, Color? color, String? semanticLabel, TextDirection? textDirection, String? titleText, bool addInkWell = false, TextStyle? titleStyle, GestureTapCallback? onTap, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? width, double? height, Decoration? decoration, AlignmentGeometry? alignment, ImageProvider<Object>? imageProvider, Image? image, Widget? title, bool visible = true, Widget? widget})
const

Properties

addInkWell bool
点击添加水波纹 InkWell
final
alignment AlignmentGeometry?
整个组件居中
final
background Color?
final
color Color?
iconimageProvidertitleText 颜色
final
crossAxisAlignment CrossAxisAlignment
final
decoration Decoration?
整个组件装饰器
final
direction Axis
组件水平或 垂直
final
hashCode int
The hash code for this object.
no setterinherited
height double?
整个组件宽高
final
heroTag String?
add Hero
final
icon IconData?
final
iconWidget List<Widget>
no setter
image Image?
final
imageProvider ImageProvider<Object>?
final
isChildren bool
no setter
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
final
margin EdgeInsetsGeometry?
final
maxLines int
titleText显示时最大行数
final
onTap GestureTapCallback?
整个组件点击事件
final
overflow TextOverflow
final
padding EdgeInsetsGeometry?
final
reversal bool
收尾颠倒 false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
仅支持 iconimageProvider
final
size double?
iconimageProvider 大小
final
spacing double
title或者titleText间距
final
spacingWidget Widget
no setter
textAlign TextAlign
final
textDirection TextDirection?
final
title Widget?
final
titleStyle TextStyle?
final
titleText String?
文字
final
titleWidget Widget
no setter
visible bool
显示 false
final
widget Widget?
icon > image > imageProvider > widget
final
width double?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
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}) 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
universal({List<Widget>? children, Widget? child}) Widget

Operators

operator ==(Object other) bool
The equality operator.
inherited