Diego Costular
12/17/2023, 2:50 PMChip
. I've been reading other messages and tried animateContentSize()
, AnimatedContent
and other ways with no luck and weird results.
First I tried the animateContentSize()
directly to the Chip's modifier but the animation seems not smooth and it only works for the selected state and not the other way around.
Also tried adding animateContentSize()
inside the trailingIcon
with even a weirder result.
Any ideas? 🙇Diego Costular
12/19/2023, 10:02 AMDoris Liu
12/19/2023, 11:42 PManimateContentSize
didn't work.Diego Costular
12/20/2023, 10:48 AMDoris Liu
12/20/2023, 7:26 PMConstraints
change during the measurement that causes the text (i.e. title of the chip) to be remeasured and relaid out, which is not desirable.
If you could isolate the issue in a minimal reproducible project, that'd help us narrow down where the changing Constraints come from. It's possible that the constraints come from the use of IntrinsicSize