CustomOutlinedButtonIcon class

图标轮廓按钮组件

Inheritance

Constructors

CustomOutlinedButtonIcon({required Function? onPressed, required Widget icon, required Widget label, Key? key, VoidCallback? onLongPress, ButtonStyle? style, FocusNode? focusNode, bool autofocus = false, Clip clipBehavior = Clip.none, WidgetStatesController? statesController, ValueChanged<bool>? onFocusChange, ValueChanged<bool>? onHover, CustomButtonSize? size, double? width, double? height, double? fontSize, Color? color, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding})
图标轮廓按钮
const

Properties

autofocus bool
自动聚焦
finalinherited
clipBehavior Clip
裁剪方式
finalinherited
color Color?
颜色
finalinherited
focusNode FocusNode?
焦点节点
finalinherited
fontSize double?
字体大小
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
高度
finalinherited
icon Widget
图标
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget
标签
final
margin EdgeInsetsGeometry?
外边距
finalinherited
onFocusChange ValueChanged<bool>?
焦点变化回调
finalinherited
onHover ValueChanged<bool>?
悬停回调
finalinherited
onLongPress VoidCallback?
长按回调
finalinherited
onPressed Function?
点击回调
finalinherited
padding EdgeInsetsGeometry?
内边距
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size CustomButtonSize?
尺寸
finalinherited
statesController WidgetStatesController?
状态控制器
finalinherited
style ButtonStyle?
样式
finalinherited
width double?
宽度
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CustomOutlinedButtonIcon>
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
getButtonStyle(ColorScheme colorScheme, CustomButtonSize size) ButtonStyle?
获取按钮样式
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