You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some views complete rendering after an animation, such as the OutlinedTextField (referenced in #1032). Calling the regular snapshot functions will only grab the first frame which shows the view in an incomplete state. It would be nice to have an API that allowed snapshotting a view after an animation, potentially by specifying a number of frames to skip before taking the snapshot.
The text was updated successfully, but these errors were encountered:
I'm using robolectric for some of my tests and it has a nice API for skipping frames until no pending layout/measurements are detected. I think paparazzi would also benefit from something similar.
saket
added a commit
to saket/swipe
that referenced
this issue
Feb 1, 2024
FWIW here's a more common example: I am migrating my library from BoxWithConstraints to Box but its causing my tests to fail because I'm no longer receiving a layout size in the first frame: saket/swipe@658ffed
Some views complete rendering after an animation, such as the
OutlinedTextField
(referenced in #1032). Calling the regularsnapshot
functions will only grab the first frame which shows the view in an incomplete state. It would be nice to have an API that allowed snapshotting a view after an animation, potentially by specifying a number of frames to skip before taking the snapshot.The text was updated successfully, but these errors were encountered: