CustomInkWell class
InkWell 组件
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomInkWell
Constructors
-
CustomInkWell({Key? key, Widget? child, GestureTapCallback? onTap, GestureTapCallback? onDoubleTap, GestureLongPressCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, GestureTapCallback? onTapCancel, GestureTapCallback? onSecondaryTap, GestureTapUpCallback? onSecondaryTapUp, GestureTapDownCallback? onSecondaryTapDown, GestureTapCallback? onSecondaryTapCancel, ValueChanged<
bool> ? onHighlightChanged, ValueChanged<bool> ? onHover, MouseCursor? mouseCursor, Color? focusColor, Color? hoverColor, Color? highlightColor, WidgetStateProperty<Color?> ? overlayColor, Color? splashColor, InteractiveInkFeatureFactory? splashFactory, double? radius, BorderRadius? borderRadius, ShapeBorder? customBorder, bool enableFeedback = true, bool excludeFromSemantics = false, FocusNode? focusNode, bool canRequestFocus = true, ValueChanged<bool> ? onFocusChange, bool autofocus = false, WidgetStatesController? statesController, Duration? hoverDuration}) -
构造函数
const
Properties
- autofocus → bool
-
是否自动获取焦点
final
- borderRadius → BorderRadius?
-
圆角
final
- canRequestFocus → bool
-
是否可请求焦点
final
- child → Widget?
-
子组件
final
- customBorder → ShapeBorder?
-
自定义边框
final
- enableFeedback → bool
-
是否启用反馈
final
- excludeFromSemantics → bool
-
是否排除语义
final
- focusColor → Color?
-
焦点颜色
final
- focusNode → FocusNode?
-
焦点节点
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightColor → Color?
-
高亮颜色
final
- hoverColor → Color?
-
悬停颜色
final
- hoverDuration → Duration?
-
悬停持续时间
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mouseCursor → MouseCursor?
-
鼠标光标
final
- onDoubleTap → GestureTapCallback?
-
双击回调
final
-
onFocusChange
→ ValueChanged<
bool> ? -
焦点变化回调
final
-
onHighlightChanged
→ ValueChanged<
bool> ? -
高亮变化回调
final
-
onHover
→ ValueChanged<
bool> ? -
悬停回调
final
- onLongPress → GestureLongPressCallback?
-
长按回调
final
- onSecondaryTap → GestureTapCallback?
-
次要点击回调
final
- onSecondaryTapCancel → GestureTapCallback?
-
次要取消回调
final
- onSecondaryTapDown → GestureTapDownCallback?
-
次要按下回调
final
- onSecondaryTapUp → GestureTapUpCallback?
-
次要抬起回调
final
- onTap → GestureTapCallback?
-
点击回调
final
- onTapCancel → GestureTapCallback?
-
取消回调
final
- onTapDown → GestureTapDownCallback?
-
按下回调
final
- onTapUp → GestureTapUpCallback?
-
抬起回调
final
-
overlayColor
→ WidgetStateProperty<
Color?> ? -
覆盖颜色
final
- radius → double?
-
半径
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- splashColor → Color?
-
波纹颜色
final
- splashFactory → InteractiveInkFeatureFactory?
-
波纹效果
final
- statesController → WidgetStatesController?
-
状态控制器
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