animated scale does not work with x scale or y scale set #1823
-
QuestionAny ideas on how to make scale animations with x scale and y scale? Thanks Code samplefrom flet import *
def main(page: Page):
page.vertical_alignment = MainAxisAlignment.CENTER
page.horizontal_alignment = CrossAxisAlignment.CENTER
page.update()
b = Container(
bgcolor=colors.GREEN,
width=200,
height=200,
shape=BoxShape.CIRCLE,
scale=Scale(scale_x=1),
animate_scale=1000,
)
def alter_scale(e):
b.scale = Scale(scale_x=1.5)
page.update()
page.add(
b,
FloatingActionButton(
icon=icons.ADD,
on_click=alter_scale,
)
)
app(main) Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
FeodorFitsner
Sep 13, 2023
Replies: 1 comment
-
Flutter's AnimatedScale used in Flet does support |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TiagoAL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flutter's AnimatedScale used in Flet does support
scale
only, notscale_x
/scale_y
separetaly.