SpinwheelCompose ![](https://camo.githubusercontent.com/223959c8959cd478575f231d89e0f82256cbbd7ea6149d0fcfc94c917fbe69e8/68747470733a2f2f6a69747061636b2e696f2f762f636f6d6d616e6469726f6e2f5370696e576865656c436f6d706f73652e737667)
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'
}