feat:Add cancelAnimation and clearAnimation

This commit is contained in:
pengfei.zhou
2021-04-22 11:46:24 +08:00
committed by osborn
parent 15a62bad8a
commit e7ced92281
10 changed files with 132 additions and 94 deletions

View File

@@ -18,21 +18,30 @@ class Animations extends Panel {
height: 20,
backgroundColor: Color.BLUE,
}),
text({
text: "Start",
onClick: () => {
view.doAnimation(context, animation)
}
}),
text({
text: "Cancel",
onClick: () => {
view.cancelAnimation(context, animation)
}
}),
text({
text: "Clear",
onClick: () => {
view.clearAnimation(context, animation)
}
}),
],
{
space: 10,
space: 20,
layoutConfig: layoutConfig().most(),
gravity: Gravity.Center
}).in(root)