SpinwheelCompose
SpinWheel in Android using Jetpack Compose.
How it looks
Usage
val textList by remember {
mutableStateOf(
listOf("Pie 1", "Pie 2", "Pie 3", "Pie 4", "Pie 5", "Pie 6", "Pie 7", "Pie 8")
)
}
DefaultSpinWheel(isSpinning = true){ pieIndex ->
Text(text = textList[pieIndex])
}
Setup
- Open the file
settings.gradle
(it looks like that)
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
// add jitpack here ??
maven { url 'https://jitpack.io' }
...
}
}
...
- Sync the project
- Add dependency
dependencies {
implementation 'com.github.commandiron:SpinWheelCompose:1.0.3'
}