https://kotlinlang.org logo
#decompose
Title
# decompose
m

Marc

03/02/2023, 4:32 PM
hey! thanks for decompose, it’s great. quick question. is it in the plans to implement common navigation models based on generic as part of decompose? backstack and dialog exist. maybe it makes sense to have carousel/pager (as seen in the samples) and other very common ones. generic navigation allows to do pretty much any navigation one can think of but i still think there may be value in adding some as most apps use similar nav schemes.
a

Arkadii Ivanov

03/02/2023, 4:42 PM
Thanks for your feedback! The idea is to collect use cases and feedback and add most useful navigation models to the library. I have just filed a discussion for this - https://github.com/arkivanov/Decompose/discussions/336.
m

Marc

03/02/2023, 4:53 PM
cool! i added some ideas there
thanks for always responding this fast
as i mention, there is nothing missing from decompose as one can implement pretty much everything using generic nav.. and having the existing 2 is great inspiration
but yes, there are certainly very common navigation models in apps that would be nice to have
a

Arkadii Ivanov

03/02/2023, 4:55 PM
Awesome, I agree!
Do you mind splitting one idea per message? This is so we could discuss each one separately in a thread.
m

Marc

03/02/2023, 5:00 PM
done!
i guess this way people can vote individual ideas as well
a

Arkadii Ivanov

03/02/2023, 5:01 PM
Exactly. Thanks!
m

Marc

03/02/2023, 5:02 PM
is there any in particular that you’d like help with? i could try to do it to also get some knowledge 🙂
p

Pablichjenkov

03/02/2023, 5:12 PM
That would help people get started way easier. I would vote for having the most common ones, bottombar navigation, side drawer, pager/carousel and 2/3 sided panel
a

Arkadii Ivanov

03/02/2023, 5:14 PM
Pager seems like the most often used out of all three. But perhaps it's better to collect feedback and use cases before starting any work on this. I will write my thoughts on each of them in the coming days.
m

Marc

03/02/2023, 5:15 PM
another line of work that may be interesting is adding compose support for them (like stack does)
@Pablichjenkov maybe you could add yours to the thread in github? not sure if everyone is on slack 🙇
p

Pablichjenkov

03/02/2023, 5:23 PM
Sure let me open the link and keep it in the browser for later
9 Views