Would you want to use SceneStrategy with a per scr...
# compose-android
b
Would you want to use SceneStrategy with a per screen top app bar setup or would that not really work well? I was excited to try it after watching how easy it was to get a list detail view setup that way but not need to necessarily build it with a single Composable. But I always do TopBar per screen rather than a global one.
s
It's complicated and it depends 😅 Sharing a persistent top bar between screens, while allowing each screen to configure and callback into the top bar, has been a tough architectural problem for as long as Android apps have been written
I recommend giving this article a read, it explores the root level and per-screen approaches and gives some recommendations for how to architect your Compose apps https://www.tunjid.com/articles/ui-layer-architecture-for-persistent-ui-elements-68248e8ecc8e85f53ce1aa46