{"repo":"zhanghai/ComposePreference","free":true,"listed":false,"github":"https://github.com/zhanghai/ComposePreference","clone":"git clone https://github.com/zhanghai/ComposePreference.git","description":"Preference implementation for Jetpack Compose Material 3","language":"Kotlin","stars":320,"topics":["android","android-library","compose","compose-library","jetpack-compose","jetpack-compose-library","preferences","android-ui","kotlin","kotlin-android"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Compose Preference Preference implementation for Jetpack Compose Material 3. This is not an officially supported Google product. Preview Integration Gradle: Design There is no official and complete Material 3 UX specification for preference yet, so the UX design of this library mainly comes from the following sources: - Material Design 3 - Material Design 2 Android Settings - Android settings design guidelines - AndroidX Preference - AOSP Settings Usage This library is designed with both extensibility and ease-of-use in mind. Basic usage of this library involves invoking the ProvidePreferenceLocals composable, and then calling the Preference helper functions in a LazyColumn composable: Preferences Built-in types of preferences include: - Preference - PreferenceCategory - CheckboxPreference - FooterPreference - ListPreference (supports both alert dialog and dropdown menu) - MultiSelectListPreference - RadioButtonPreference - SliderPreference - SwitchPreference - TextFieldPreference - TwoTargetIconButtonPreference - TwoTargetSwitchPreference Each type of built-in preference includes 4 kinds of APIs: 1. A LazyListScope. Preference extension function, which is the easiest way to use preferences in this library, and helps developers to avoid boilerplates like having to specify the key twice for the LazyColumn and the Preference . 2. A LazyListScope. Preference extension function, which is an overload of the first extension function but accepts value and onValueChange instead. 3. A","default_branch":null,"files":null,"tree":[],"storefront":"/r/zhanghai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zhanghai/ComposePreference/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}