Clickable constructor
const
Clickable({
- Key? key,
- required Widget child,
- WidgetStatesController? statesController,
- bool enabled = true,
- WidgetStateProperty<
Decoration?> ? decoration, - WidgetStateProperty<
MouseCursor?> ? mouseCursor, - WidgetStateProperty<
EdgeInsetsGeometry?> ? padding, - WidgetStateProperty<
TextStyle?> ? textStyle, - WidgetStateProperty<
IconThemeData?> ? iconTheme, - VoidCallback? onPressed,
- FocusNode? focusNode,
- HitTestBehavior behavior = HitTestBehavior.translucent,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocus, - bool disableTransition = false,
- bool disableHoverEffect = false,
- WidgetStateProperty<
EdgeInsetsGeometry?> ? margin, - VoidCallback? onDoubleTap,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - bool focusOutline = true,
- bool enableFeedback = true,
- WidgetStateProperty<
Matrix4?> ? transform, - VoidCallback? onLongPress,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCancelCallback? onTapCancel,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCancelCallback? onSecondaryTapCancel,
- GestureTapDownCallback? onTertiaryTapDown,
- GestureTapUpCallback? onTertiaryTapUp,
- GestureTapCancelCallback? onTertiaryTapCancel,
- GestureLongPressStartCallback? onLongPressStart,
- GestureLongPressUpCallback? onLongPressUp,
- GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
- GestureLongPressEndCallback? onLongPressEnd,
- GestureLongPressUpCallback? onSecondaryLongPress,
- GestureLongPressUpCallback? onTertiaryLongPress,
- bool? isSemanticButton = true,
- AlignmentGeometry? marginAlignment,
- bool disableFocusOutline = false,
Implementation
const Clickable({
super.key,
required this.child,
this.statesController,
this.enabled = true,
this.decoration,
this.mouseCursor,
this.padding,
this.textStyle,
this.iconTheme,
this.onPressed,
this.focusNode,
this.behavior = HitTestBehavior.translucent,
this.onHover,
this.onFocus,
this.disableTransition = false,
this.disableHoverEffect = false,
this.margin,
this.onDoubleTap,
this.shortcuts,
this.actions,
this.focusOutline = true,
this.enableFeedback = true,
this.transform,
this.onLongPress,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onTertiaryTapDown,
this.onTertiaryTapUp,
this.onTertiaryTapCancel,
this.onLongPressStart,
this.onLongPressUp,
this.onLongPressMoveUpdate,
this.onLongPressEnd,
this.onSecondaryLongPress,
this.onTertiaryLongPress,
this.isSemanticButton = true,
this.marginAlignment,
this.disableFocusOutline = false,
});