主题
Animation
用于可动画控件属性的显式动画配置。
接受动画的属性通常也支持通过 AnimationValue 使用简写值:
True:启用默认的1000msLINEAR动画。int:被解释为以毫秒为单位的动画时长,并采用线性曲线。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
duration | DurationValue | Duration(() | 动画时长。 If provided as an integer, it is considered/assumed to be in milliseconds. For more control and flexibility, use Duration instead. |
curve | AnimationCurve | AnimationCurve.LINEAR | Easing curve that shapes interpolation over time. |
方法
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
copy | 'Animation' | — | 返回此对象的副本,可覆盖指定属性。 |