martinsumera
04/18/2023, 7:15 AMHome (third tab) -> Item Detail (id = 123, tab = second tab) -> Settings -> Specific item settings (newValue = "xxx")
I'm thinking what is better way how to handle this. Trying to model deeplinks directly in compose navigation <app://home/{tab}/item/{id}/{tab}/settings/specific?newValue=xxx>
but this may be tricky because some parameters may be optional and there may be a lot of different paths for each screen. So I was thinking if it would be better to build the stack manually as
val navigation = ....
navigation.navigateToHome(tab = 3)
navigation.navigateToItemDetail(id = 123, tab = 2)
navigation.navigateToSettings()
navigation.navigateToSpecificItemSettings(newValue = "xxx")
This seems to me as a much more flexible way. Do you see some drawbacks in this approach? What would you recommend. Thanks.