inkWell method

InkWell inkWell({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. GestureTapDownCallback? onTapDown,
  4. GestureTapUpCallback? onTapUp,
  5. GestureTapCallback? onTapCancel,
  6. GestureTapCallback? onDoubleTap,
  7. GestureLongPressCallback? onLongPress,
  8. GestureTapCallback? onSecondaryTap,
  9. GestureTapUpCallback? onSecondaryTapUp,
  10. GestureTapDownCallback? onSecondaryTapDown,
  11. GestureTapCallback? onSecondaryTapCancel,
  12. ValueChanged<bool>? onHighlightChanged,
  13. ValueChanged<bool>? onHover,
  14. MouseCursor? mouseCursor,
  15. bool containedInkWell = false,
  16. BoxShape highlightShape = BoxShape.circle,
  17. double? radius,
  18. BorderRadius? borderRadius,
  19. ShapeBorder? customBorder,
  20. Color? focusColor,
  21. Color? hoverColor,
  22. Color? highlightColor,
  23. MaterialStateProperty<Color?>? overlayColor,
  24. Color? splashColor,
  25. InteractiveInkFeatureFactory? splashFactory,
  26. bool enableFeedback = true,
  27. bool excludeFromSemantics = false,
  28. FocusNode? focusNode,
  29. bool canRequestFocus = true,
  30. ValueChanged<bool>? onFocusChange,
  31. bool autofocus = false,
  32. MaterialStatesController? statesController,
  33. Duration? hoverDuration,
})

用InkWell包裹当前组件

Implementation

InkWell inkWell({
  Key? key,
  GestureTapCallback? onTap,
  GestureTapDownCallback? onTapDown,
  GestureTapUpCallback? onTapUp,
  GestureTapCallback? onTapCancel,
  GestureTapCallback? onDoubleTap,
  GestureLongPressCallback? onLongPress,
  GestureTapCallback? onSecondaryTap,
  GestureTapUpCallback? onSecondaryTapUp,
  GestureTapDownCallback? onSecondaryTapDown,
  GestureTapCallback? onSecondaryTapCancel,
  ValueChanged<bool>? onHighlightChanged,
  ValueChanged<bool>? onHover,
  MouseCursor? mouseCursor,
  bool containedInkWell = false,
  BoxShape highlightShape = BoxShape.circle,
  double? radius,
  BorderRadius? borderRadius,
  ShapeBorder? customBorder,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  MaterialStateProperty<Color?>? overlayColor,
  Color? splashColor,
  InteractiveInkFeatureFactory? splashFactory,
  bool enableFeedback = true,
  bool excludeFromSemantics = false,
  FocusNode? focusNode,
  bool canRequestFocus = true,
  ValueChanged<bool>? onFocusChange,
  bool autofocus = false,
  MaterialStatesController? statesController,
  Duration? hoverDuration,
}) {
  return InkWell(
    key: key,
    onTap: onTap,
    onDoubleTap: onDoubleTap,
    onLongPress: onLongPress,
    onTapDown: onTapDown,
    onTapUp: onTapUp,
    onTapCancel: onTapCancel,
    onSecondaryTap: onSecondaryTap,
    onSecondaryTapUp: onSecondaryTapUp,
    onSecondaryTapDown: onSecondaryTapDown,
    onSecondaryTapCancel: onSecondaryTapCancel,
    onHighlightChanged: onHighlightChanged,
    onHover: onHover,
    mouseCursor: mouseCursor,
    focusColor: focusColor,
    hoverColor: hoverColor,
    highlightColor: highlightColor,
    overlayColor: overlayColor,
    splashColor: splashColor,
    splashFactory: splashFactory,
    radius: radius,
    borderRadius: borderRadius,
    customBorder: customBorder,
    enableFeedback: enableFeedback,
    excludeFromSemantics: excludeFromSemantics,
    focusNode: focusNode,
    canRequestFocus: canRequestFocus,
    onFocusChange: onFocusChange,
    autofocus: autofocus,
    statesController: statesController,
    hoverDuration: hoverDuration,
    child: this,
  );
}