Ali Zargar Shabestari

    Ali Zargar Shabestari

    2 years ago
    is there any wrapper for fragment to use in compose? my goal is to use a
    PreferenceFragmentCompat
    without rewriting the logic it provides for free.
    or is there a xml-free method for managing preferences?
    m

    Mark Murphy

    2 years ago
    once the Navigation component supports Compose, you could just create your
    PreferenceFragmentCompat
    as normal, add it to the appropriate nav graph, and navigate to it from the appropriate composable
    Ali Zargar Shabestari

    Ali Zargar Shabestari

    2 years ago
    I think it is already possible to wrap Compose code inside fragment and use that fragment inside nav graph. However, I’m using code inspired by the nav code from the Owl sample app for navigation which in my humble opinion is less complicated than Navigation component.