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? labelText, TextStyle? labelStyle, GestureTapCallback? onTap, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? width, double? height, Decoration? decoration, AlignmentGeometry? alignment, ImageProvider<
Object> ? imageProvider, Image? image, Widget? label, Widget? widget, VoidCallback? onPressed, ValueChanged<bool> ? onHover, ValueChanged<bool> ? onFocusChange, ButtonStyle? style, FocusNode? focusNode, bool autofocus = false, WidgetStatesController? statesController, GestureLongPressCallback? onLongPress, Clip? clipBehavior, UnifiedButtonCategory? unifiedButtonCategory}) -
const
Properties
- alignment → AlignmentGeometry?
-
整个组件居中
final
- autofocus → bool
-
final
- background → Color?
-
final
-
buildIcon
→ List<
Widget> -
no setter
- buildSpacing → Widget
-
no setter
- buildTitle → Widget
-
no setter
- clipBehavior → Clip?
-
final
- color → Color?
-
icon、imageProvider、labelText 颜色
final
- crossAxisAlignment → CrossAxisAlignment
-
final
- decoration → Decoration?
-
整个组件装饰器
final
- direction → Axis
-
组件水平或 垂直
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
整个组件宽高
final
- heroTag → String?
-
add Hero
final
- icon → IconData?
-
final
- image → Image?
-
final
-
imageProvider
→ ImageProvider<
Object> ? -
final
- isChildren → bool
-
no setter
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
文字
final
- mainAxisAlignment → MainAxisAlignment
-
final
- margin → EdgeInsetsGeometry?
-
final
- maxLines → int
-
labelText显示时最大行数
final
-
onFocusChange
→ ValueChanged<
bool> ? -
final
-
onHover
→ ValueChanged<
bool> ? -
final
- onLongPress → GestureLongPressCallback?
-
final
- onPressed → VoidCallback?
-
****** UnifiedButton ****** ///
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?
-
仅支持 icon、imageProvider
final
- size → double?
-
icon、imageProvider 大小
final
- spacing → double
-
与label或者labelText间距
final
- statesController → WidgetStatesController?
-
final
- style → ButtonStyle?
-
final
- textAlign → TextAlign
-
final
- textDirection → TextDirection?
-
final
- unifiedButtonCategory → UnifiedButtonCategory?
-
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