CustomChip class
Chip 标签组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomChip
Constructors
- CustomChip({required Widget label, Key? key, Widget? avatar, TextStyle? labelStyle, EdgeInsetsGeometry? labelPadding, Widget? deleteIcon, VoidCallback? onDeleted, Color? deleteIconColor, String? deleteButtonTooltipMessage, BorderSide? side, OutlinedBorder? shape, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, Color? backgroundColor, EdgeInsetsGeometry? padding, VisualDensity? visualDensity, MaterialTapTargetSize? materialTapTargetSize, double? elevation, Color? shadowColor, Color? surfaceTintColor, IconThemeData? iconTheme, BoxConstraints? avatarBoxConstraints, BoxConstraints? deleteIconBoxConstraints})
-
Chip 标签组件
const
Properties
- autofocus → bool
-
自动获取焦点
final
- avatar → Widget?
-
标签前部显示的头像组件
final
- avatarBoxConstraints → BoxConstraints?
-
头像尺寸约束
final
- backgroundColor → Color?
-
背景颜色
final
- clipBehavior → Clip
-
裁剪行为
final
- deleteButtonTooltipMessage → String?
-
删除按钮提示文本
final
- deleteIcon → Widget?
-
删除按钮图标
final
- deleteIconBoxConstraints → BoxConstraints?
-
删除图标尺寸约束
final
- deleteIconColor → Color?
-
删除图标颜色
final
- elevation → double?
-
阴影高度
final
- focusNode → FocusNode?
-
焦点节点
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconTheme → IconThemeData?
-
图标主题
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget
-
标签的主要内容
final
- labelPadding → EdgeInsetsGeometry?
-
标签文本内边距
final
- labelStyle → TextStyle?
-
标签文本样式
final
- materialTapTargetSize → MaterialTapTargetSize?
-
点击目标尺寸
final
- onDeleted → VoidCallback?
-
删除按钮点击回调
final
- padding → EdgeInsetsGeometry?
-
内边距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
阴影颜色
final
- shape → OutlinedBorder?
-
边框形状
final
- side → BorderSide?
-
边框样式
final
- surfaceTintColor → Color?
-
表面色调
final
- visualDensity → VisualDensity?
-
视觉密度
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, 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