https://kotlinlang.org logo
#compose
Title
# compose
c

Chris Fillmore

02/16/2022, 4:22 AM
Is it a bad idea (currently) to put a
Canvas
inside
AnimatedContent
? It looks pretty bad; the canvas doesn’t animate and so ends up overlapping with other screens.
Hmm, on a subsequent build it now looks ok. Strange.
(Note these are all debug builds… I’m aware of the perf boost with release builds, so perhaps I’ll circle back to this on my next release)
d

Doris Liu

02/17/2022, 2:40 AM
AnimatedContent
puts a few modifiers on each of the underlying content to achieve the enter/exit animation. So I would expect
Canvas
inside
AnimatedContent
should work fine. What did you see? Do you have a video?
c

Chris Fillmore

02/17/2022, 2:58 AM
It seems it was a transient issue as I never saw it again after my initial post. No video unfortunately.
d

Doris Liu

02/17/2022, 3:49 AM
No worries. 🙂 If you see it again, I'd love to understand what's going on.
2 Views