This is a custom widget made with Jetpack Compose for displaying stats of different things such as progress or measurement.
Add maven repository url to your project if not included
- Go to settings.gradle and add the following line
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the following line to your build.gradle(:app) 'app level'
dependencies {
implementation 'com.github.JyotimoyKashyap:CircularStats:0.0.1'
}
After adding the dependencies in your project simply call CircularStats()
CircularStats(
canvasSize = 200.dp,
indicatorValue = 100,
progressTextColor = MaterialTheme.colors.onBackground
)
Adding canvasSize
and indicatorValue
is mandatory but other parameters have default values which should work with your current theme. You can
Copyright 2022 Jyotimoy Kashyap
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.