I have a history screen and bottom sheet to filter...
# compose
h
I have a history screen and bottom sheet to filter conditions inside it, in the filter bottom sheet I have about 5 textfields, checkbox,.etc.. Should I store filter bottom sheet UI state in history screen's UI state and do business logic of bottom sheet in screen's viewmodel or creating a plain class state holder to store ? (because I wonder if I store in screen's UI state can make it bigger and more complex)
s
Sounds to me like the sheet logic is part of the screen here. You wouldn't reuse that sheet in another screen. I'd start with all of it being on the same VM and go from there tbh.
❤️ 1