'What is the best Compose way to build preference screens without using a fragment?

I was unable to find any documentation on how to create preference screens in a pure Compose way without using a fragment.

Can anyone please suggest the best way to make a preference screen without using a fragment with an example? Or should we stick with the fragment way for that?

Thanks for your help!



Solution 1:[1]

I have implemented my handmade settings screen for jetpack compose. This is a sample of my app using it. I know that this is isn't perfect but here is the link anyway if you want to try it:

My repository

enter image description here

Solution 2:[2]

You can compose it. ?
A good example from the Jetnews study app:

enter image description here

You can also use third-party libraries like Compose-Settings if prefer.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2