QIndicators
is a jetpack Compose library will help you showing indicators in your app within buttons, pagers everywhere.
Demo
Download
Gradle
Add the dependency below to your module level build.gradle
:
dependencies {
implementation 'io.github.qamarelsafadi:qindicators:1.0.0'
}
Usage
You can implement your indicators with composable function as seen in the below:
var selectedPage by remember { mutableStateOf(0) }
Indicators(count = 7,
size = 10,
spacer = 5,
selectedPage,
indicatorSelectedLength = 60
modifier = Modifier.align(Alignment.Center),
selectedColor = Color.Red,
unselectedColor = PurpleGrey40
)
Find this library useful? ❤️
Star it and Follow me for more content like this.