nschnettler / composepreferences Goto Github PK
View Code? Open in Web Editor NEWPreference functionality for Jetpack Compose
License: Apache License 2.0
Preference functionality for Jetpack Compose
License: Apache License 2.0
When the preference item entries exceeded certain amount, the options are not visible/displayed properly.
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?
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
)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.