PreferenceSwitch
fun PreferenceSwitch(title: String, description: String? = null, icon: ImageVector? = null, enabled: Boolean = true, isChecked: Boolean = true, containerColor: Color = Color.White, contentColor: Color = Color.DarkGray, colors: SwitchColors = SwitchDefaults.colors(), checkedIcon: ImageVector = Icons.Outlined.Check, titleStyle: TextStyle = MaterialTheme.typography.titleLarge, descriptionStyle: TextStyle = MaterialTheme.typography.bodyMedium, onClick: () -> Unit = {})
Deprecated
Use JchuPreferenceSwitch
Replace with
JchuPreferenceSwitch(title = title, checked = isChecked, onCheckedChange = { onClick() })Content copied to clipboard
Compatibility wrapper for JchuPreferenceSwitch.