CustomIconButtonBase class abstract

IconButton 基类

Inheritance
Implementers

Constructors

CustomIconButtonBase({required dynamic onPressed()?, required Widget icon, Key? key, double? iconSize, VisualDensity? visualDensity, EdgeInsetsGeometry? padding, AlignmentGeometry? alignment, double? splashRadius, Color? color, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, Color? disabledColor, MouseCursor? mouseCursor, FocusNode? focusNode, bool autofocus = false, String? tooltip, bool? enableFeedback, BoxConstraints? constraints, ButtonStyle? style, bool? isSelected, Widget? selectedIcon, CustomIconButtonType? type})
IconButton 基类
const

Properties

alignment AlignmentGeometry?
对齐方式
final
autofocus bool
自动聚焦
final
color Color?
颜色
final
constraints BoxConstraints?
约束
final
disabledColor Color?
禁用颜色
final
enableFeedback bool?
启用反馈
final
focusColor Color?
焦点颜色
final
focusNode FocusNode?
焦点节点
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
高亮颜色
final
hoverColor Color?
悬停颜色
final
icon Widget
图标
final
iconSize double?
图标尺寸
final
isSelected bool?
选中状态
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mouseCursor MouseCursor?
鼠标指针
final
onPressed → dynamic Function()?
点击回调
final
padding EdgeInsetsGeometry?
内边距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon Widget?
选中图标
final
splashColor Color?
波纹颜色
final
splashRadius double?
点击波纹半径
final
style ButtonStyle?
样式
final
tooltip String?
提示文本
final
type CustomIconButtonType?
类型
final
visualDensity VisualDensity?
视觉密度
final

Methods

buildIconButton(BuildContext context, VoidCallback? onPressed, CustomIconButtonType? type) Widget
构建图标按钮
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() CustomIconButtonBaseState<CustomIconButtonBase>
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
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