TiltConfig class
Tilt effect config. 倾斜效果配置。
- Annotations
Constructors
-
TiltConfig({bool disable = false, Offset? initial, double angle = 10.0, List<
TiltDirection> ? direction, bool enableReverse = false, FilterQuality? filterQuality, bool enableGestureSensors = true, double sensorFactor = 10.0, bool enableSensorRevert = true, double sensorRevertFactor = 0.05, Duration sensorMoveDuration = const Duration(milliseconds: 50), bool enableGestureHover = true, bool enableGestureTouch = true, bool enableRevert = true, bool enableOutsideAreaMove = true, Duration moveDuration = const Duration(milliseconds: 100), Duration leaveDuration = const Duration(milliseconds: 300), Curve moveCurve = Curves.linear, Curve leaveCurve = Curves.linear, Duration controllerMoveDuration = const Duration(milliseconds: 100), Duration controllerLeaveDuration = const Duration(milliseconds: 300)}) -
Tilt effect config.
倾斜效果配置。
const
Properties
- angle → double
-
Maximum tilt angle.
final
- controllerLeaveDuration → Duration
-
Animation duration after controller gesture leave.
final
- controllerMoveDuration → Duration
-
Animation duration during controller gesture move.
final
-
direction
→ List<
TiltDirection> ? -
Tilt Direction,
final
- disable → bool
-
Only disable the tilt effect.
final
- enableGestureHover → bool
-
Hover gesture triggered tilt.
final
- enableGestureSensors → bool
-
Gyroscope sensor triggered tilt.
final
- enableGestureTouch → bool
-
Touch gesture triggered tilt.
final
- enableOutsideAreaMove → bool
-
Tilt can continue to be triggered outside the area.
final
- enableReverse → bool
-
Tilt reverse, can be tilted up or down.
final
- enableRevert → bool
-
Enable tilt revert,
will revert to the initial state.
final
- enableSensorRevert → bool
-
Enable sensor tilt revert,
will revert to the initial state.
final
- filterQuality → FilterQuality?
-
FilterQuality
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- initial → Offset?
-
Initial tilt progress,
final
- leaveCurve → Curve
-
Animation curve after gesture leave.
final
- leaveDuration → Duration
-
Animation duration after gesture leave.
final
- moveCurve → Curve
-
Animation curve during gesture move.
final
- moveDuration → Duration
-
Animation duration during gesture move.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sensorFactor → double
-
Sensor trigger factor (sensitivity).
final
- sensorMoveDuration → Duration
-
Animation duration during sensor move.
final
- sensorRevertFactor → double
-
Sensor revert factor (damping),
final
Methods
-
copyWith(
{bool? disable, Offset? initial, double? angle, List< TiltDirection> ? direction, bool? enableReverse, FilterQuality? filterQuality, bool? enableGestureSensors, double? sensorFactor, bool? enableSensorRevert, double? sensorRevertFactor, Duration? sensorMoveDuration, bool? enableGestureHover, bool? enableGestureTouch, bool? enableRevert, bool? enableOutsideAreaMove, Duration? moveDuration, Duration? leaveDuration, Curve? moveCurve, Curve? leaveCurve, Duration? controllerMoveDuration, Duration? controllerLeaveDuration}) → TiltConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override