https://kotlinlang.org logo
#compose
Title
# compose
v

Vivek Modi

07/18/2022, 10:38 PM
Hey guys, Should I use navigation-compose as suggested by Google or stick with Fragments and use Compose only for rendering views?
i

Ian Lake

07/18/2022, 11:03 PM
Are you writing a brand new Compose app? I don't know why you'd purposefully choose fragments for a new Compose app, no matter what navigation system you end up using (there are many options to choose from for a pure Compose app)
The only time we recommend using fragments (by themselves or with Navigation with Fragments) is if your app is already built on top of fragments, as per the docs: https://developer.android.com/jetpack/compose/navigation#interoperability
☝️ 1
v

Vivek Modi

07/19/2022, 4:27 AM
Yes I am building a basic compose app for my learning purpose. I am totally new in compose. I am asking what should I use for navigation for different screen. If fragments are not recommand solution then I'll not use them. So what is the recommendation for compose for navigation? Can you please guide me ?
@Ian Lake
s

sindrenm

07/19/2022, 9:54 AM
There's a navigation-compose artifact you can use for this. Check out https://developer.android.com/jetpack/compose/navigation for how to get started. 🙂
v

Vivek Modi

07/19/2022, 9:55 AM
sure thank you so much
s

sindrenm

07/19/2022, 9:56 AM
Of course! Good luck with your learning. 😃
v

Vivek Modi

07/19/2022, 9:57 AM
I really appreciate it guys.
❤️ 1
2 Views