SpinWheelCompose
                                
                                 SpinWheelCompose copied to clipboard
                                
                                    SpinWheelCompose copied to clipboard
                            
                            
                            
                        Spinwheel for Android using Jetpack Compose.
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")
    )
}
val state = rememberSpinWheelState()
val scope = rememberCoroutineScope()
SpinWheel(
    state = state,
    onClick = { scope.launch { state.animate {pieIndex -> } } }
){ 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.1.1'
}
Features
|  |   |