GithubHelp home page GithubHelp logo

composepreferences's People

Contributors

nschnettler avatar rk779 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

composepreferences's Issues

Optional Summary and Icon

It would be great if the PreferenceItem supports optional summary and icon. Submitting empty String for summary and empty Composable for icon creates weird alignment. Are there any plans for this?

Nullable value in PreferenceRequest

Love the concept of the library, but i have slight problem with it's usage (PreferenceRequest to be exact). I have some setting that i want to be nullable. But right now it is simply not possible, since the T have to be the same type as the preferencesKey from DataStore. Since DataStore CAN return store null with non-nullable generic argument then we have a type missmatch here. Example:

val nullableRequest = PreferenceRequest<String?>(
    key = stringPreferencesKey("test"),
    defaultValue = null
)

Crash with Compose material 1.2.0-alpha04 or above

When launching the demo app with version.androidx.compose.material=1.2.0-alpha04 or any newer:

java.lang.IllegalStateException: Asking for measurement result of unmeasured layout modifier at androidx.compose.ui.node.LayoutNodeWrapper.getMeasureResult(LayoutNodeWrapper.kt:104) at androidx.compose.ui.node.LayoutNodeAlignmentLines.recalculate(LayoutNodeAlignmentLines.kt:160) at androidx.compose.ui.node.LayoutNode.layoutChildren$ui_release(LayoutNode.kt:989) at androidx.compose.ui.node.LayoutNode.onNodePlaced$ui_release(LayoutNode.kt:937) at androidx.compose.ui.node.InnerPlaceable.placeAt-f8xVGno(InnerPlaceable.kt:122) at androidx.compose.ui.layout.Placeable.access$placeAt-f8xVGno(Placeable.kt:31) ...

I also reproduce it in my own app using ComposePreferences. I'm trying to understand what's going on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.