FTappableStyle class
A custom FTappable style.
- Mixed-in types
- Available extensions
Constructors
-
FTappableStyle.new({FWidgetStateMap<
MouseCursor> cursor = const FWidgetStateMap({WidgetState.any : MouseCursor.defer}), Duration pressedEnterDuration = const Duration(milliseconds: 200), Duration pressedExitDuration = Duration.zero, Duration bounceDownDuration = const Duration(milliseconds: 100), Duration bounceUpDuration = const Duration(milliseconds: 120), Curve bounceDownCurve = Curves.easeOutQuart, Curve bounceUpCurve = Curves.easeOutCubic, Tween<double> ? bounceTween}) - Creates a FTappableStyle.
Properties
- bounceDownCurve → Curve
-
The curve used to animate the scale of the tappable when pressed (down). Defaults to Curves.easeOutQuart.
final
- bounceDownDuration → Duration
-
The bounce's animation duration when the tappable is pressed down. Defaults to 100ms.
final
-
bounceTween
→ Tween<
double> -
The tween used to animate the scale of the tappable. Defaults to defaultBounceTween.
final
- bounceUpCurve → Curve
-
The curve used to animate the scale of the tappable when released (up). Defaults to Curves.easeOutCubic.
final
- bounceUpDuration → Duration
-
The bounce's animation duration when the tappable is released (up). Defaults to 120ms.
final
-
cursor
→ FWidgetStateMap<
MouseCursor> -
The mouse cursor for mouse pointers that are hovering over the region. Defaults to MouseCursor.defer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pressedEnterDuration → Duration
-
The duration to wait before applying the pressed effect after the user presses the tile. Defaults to 200ms.
final
- pressedExitDuration → Duration
-
The duration to wait before removing the pressed effect after the user stops pressing the tile. Defaults to 0s.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
Object? _) → FTappableStyle -
Returns itself.
inherited
-
copyWith(
{FWidgetStateMap< MouseCursor> ? cursor, Duration? pressedEnterDuration, Duration? pressedExitDuration, Duration? bounceDownDuration, Duration? bounceUpDuration, Curve? bounceDownCurve, Curve? bounceUpCurve, Tween<double> ? bounceTween}) → FTappableStyle -
Available on FTappableStyle, provided by the $FTappableStyleCopyWith extension
Returns a copy of this FTappableStyle with the given properties replaced. -
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
defaultBounceTween
→ Tween<
double> -
The default bounce tween used by FTappableStyle. It scales the widget down to 0.97 on tap down and back to 1.0
on tap up.
final
-
noBounceTween
→ Tween<
double> -
A tween that does not animate the scale of the tappable. It is used to disable the bounce effect.
final