Package-level declarations

Material 3-style components to be used in settings pages.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun CheckboxSetting(title: Int, body: Int, onCheckedChange: (Boolean) -> Unit, checked: Boolean, modifier: Modifier = Modifier.fillMaxWidth())
fun CheckboxSetting(title: String, body: String, onCheckedChange: (Boolean) -> Unit, checked: Boolean, modifier: Modifier = Modifier.fillMaxWidth())
fun CheckboxSetting(title: String, body: String, onCheckedChange: (Boolean) -> Unit, checkedProvider: () -> Boolean, modifier: Modifier = Modifier.fillMaxWidth())
Link copied to clipboard
Link copied to clipboard
fun RadioSetting(title: Int, body: Int, onClick: () -> Unit, selected: Boolean, modifier: Modifier = Modifier)
fun RadioSetting(title: String, body: String, onClick: () -> Unit, selected: Boolean, modifier: Modifier = Modifier)
Link copied to clipboard
fun RegularPreviewSetting(title: String, body: String, onClick: () -> Unit)
Link copied to clipboard
fun RegularSetting(title: Int, body: Int, onClick: () -> Unit)
fun RegularSetting(title: String, body: String, onClick: () -> Unit)
Link copied to clipboard

The title of a settings section. Similar to the one in Android 13 settings. (Note - not to be confused with the expanding title bar)

Link copied to clipboard
fun ToggleSetting(title: Int, body: Int, onCheckedChange: (Boolean) -> Unit, selected: Boolean)
fun ToggleSetting(title: String, body: String, onCheckedChange: (Boolean) -> Unit, selected: Boolean)