TransitionAnimationConfig class
位移转场配置 Created by Arthur on 9/3/2022.
Constructors
-
TransitionAnimationConfig({Offset from = const Offset(0.0, 1.0), Offset to = const Offset(0.0, 0.0), Curve interpolator = Curves.ease, Duration duration = const Duration(milliseconds: 300), List<
double> opacityValues = const [0, 1], bool needStartAnimation = true, bool needEndAnimation = true, bool togetherSlide = false, bool sideClose = false, bool opaque = true, TransitionAnimationGlassConfig? glassConfig})
Properties
- duration → Duration
-
持续时间
default:300ms
final
- from → Offset
-
开始位移
default:从下往上
final
- glassConfig → TransitionAnimationGlassConfig?
-
毛玻璃参数
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interpolator ↔ Curve
-
动画差值器
default:Curves.ease
getter/setter pair
- needEndAnimation → bool
-
是否需要结束动画
default:true
final
- needStartAnimation → bool
-
是否需要开始动画
default:true
final
-
opacityValues
→ List<
double> -
透明度变化
default:
0 -> 1
final - opaque → bool
-
转换完成后,路由是否遮盖之前的路由
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sideClose → bool
-
否支持侧滑关闭
当此参数为 true 时无视togetherSlide参数
default:false
final
- to → Offset
-
结束位移
default:从上往下
final
- togetherSlide → bool
-
是否需要同时位移
default:false
final
Methods
-
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.
inherited