Skip to content

util-kotlin 2.4.6

Choose a tag to compare

@sam-chen-dev sam-chen-dev released this 06 May 03:00
· 33 commits to main since this release

Add:

  • Compose Util Function:
@Composable
fun IconToggleButton(
    isChecked: Boolean,
    checkedIcon: ImageVector,
    unCheckedIcon: ImageVector,
    contentDescription: String,
    onCheckedChange: (Boolean) -> Unit
) {
    IconToggleButton(isChecked, onCheckedChange) {
        Icon(if (isChecked) checkedIcon else unCheckedIcon, contentDescription)
    }
}