Ashampoo Photos is a photo management app proudly ...
# compose-ui-showcase
s
Ashampoo Photos is a photo management app proudly made with Compose ❤️ It’s available for Windows & Android and soon coming to iOS & macOS. https://www.ashampoo.com/en-us/photos/media
🎉 13
😯 3
h
Congrats @Stefan Oltmann, i’m curious if it’s possible to share, what did you use for the navigation and did you have any challenges with it?
s
I haven't utilized a dedicated navigation library because I didn't feel the need for it. 😅 In my
AppState
, I have a
selectedMenu
property, which is of type
AppMenu
(enum) and set to
AppMenu.GALLERY
for instance. In my
MainView
, I use a
when
statement to determine which composable to display based on the current state. As a result, I don't have a traditional back-button navigation setup. Instead, the back button simply triggers an
AppAction.Close
event through my dispatcher, which then handles the necessary state transition. The architecture for handling Photos is similar to the Redux pattern used in the kmm-production-sample app.