IIndicators

is a jetpack Compose library will help you showing indicators in your app within buttons, pagers everywhere.

Demo

Download

Maven Central

Gradle

Add the dependency below to your module level build.gradle :

dependencies { 

    implementation 'io.github.ibenabdallah:iindicators:1.0.0'
 
 }

Usage

You can implement your indicators with composable function as seen in the below:

var selectedPage by remember { mutableStateOf(0) }
val count = 7

Indicators(
    count = count,
    size = 10,
    spacer = 5,
    selectedColor = Color.Red,
    unselectedColor = PurpleGrey40,
    modifier = Modifier.align(Alignment.Center),
    selectedIndex = selectedPage,
    selectedLength = 50
)

Find this library useful? ❤️

Star it and Follow me for more content like this.

GitHub

View Github