Skip to content

Animation

用于可动画控件属性的显式动画配置。

接受动画的属性通常也支持通过 AnimationValue 使用简写值:

  • True:启用默认的 1000ms LINEAR 动画。
  • int:被解释为以毫秒为单位的动画时长,并采用线性曲线。

属性 ​

名称类型默认值说明
durationDurationValueDuration(()动画时长。 If provided as an integer, it is considered/assumed to be in milliseconds. For more control and flexibility, use Duration instead.
curveAnimationCurveAnimationCurve.LINEAREasing curve that shapes interpolation over time.

方法 ​

名称类型默认值说明
copy'Animation'—返回此对象的副本,可覆盖指定属性。

关注我,学习大模型、大数据、Python等热门技术。