to track my calendar days which are selected in a period of time and then fill the square Grey.
When I select a new period of time, I first empty the mutableListOf and later I save on it my new days in order to react and show the Grey square animation.
The problem is that when I empty the mutableListOf and quickly select a new period of time, as you see in the beginning of the video, it seems that the mutableList has my old dates on cache? and then only the new days added to the period of time react to the change (the old dates animation doesn't trigger, you just see the square filled).
However if I select a new date, and wait some seconds to select the endDay, my animation is triggered in all the days, because the mutableListOf doesn't have any data saved.
for a route was being recomposed whenever the state inside my HiltViewModel changed. After thinking through it a bit I think I know the answer but wanted some confirmation before updating the post. I’ll put what I think is going on in the thread.
1 year ago
I would like to apply a draw transform to a wrapped