Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.4 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.4 KB

Compose-Round-CheckBox

RoundCheckboxes allow users to select one or more items from a set. RoundCheckboxes can turn an option on or off. It has a great and smooth animation that can make your app have a better look. :)

Preview

round_checkbox_preview.mp4

Gradle Setup

To get a Git project into your build:

  • Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
      ...
      maven { url 'https://jitpack.io' }
  }
}
  • Step 2. Add the dependency
dependencies {
	  implementation 'com.github.kosher9:Compose-Round-CheckBox:Tag'
}

To use the Compose-Round-CheckBox inside your Composable, here is a quick example:

var roundCheckBoxState by remember { mutableStateOf(false) }
RoundCheckBox(
                modifier = Modifier.width(60.dp),
                isChecked = roundCheckBoxState,
                onClick = { roundCheckBoxState = !roundCheckBoxState },
                enabled = true
            )

Check out more examples here

📝 License

This project is MIT licensed.