Skip to content

✨ComposeScratchEffect is a library to understand scratching gift & coupons like effect. Made using Koltin & Jetpack Compose 🚀 with the use of Canvas

License

Notifications You must be signed in to change notification settings

aritra-tech/ComposeScratchEffect

Repository files navigation

ComposeScratchEffect


material API Kotlin Jetpack Compose Hits

✨ComposeScratchEffect is a library to understand scratching gift & coupons like effect. Made using Koltin & Jetpack Compose 🚀 with the use of Canvas.


Adding the library to your project✨

Add the following to your root build.gradle file:

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Lastly, add the following dependency to your app's build.gradle.kts (Kotlin) or build.gradle (Groovy) file:

Kotlin (KTS)
dependencies {
    implementation("com.github.aritra-tech:ComposeScratchEffect:$currentVersion")
}
Groovy
dependencies {
    implementation 'com.github.aritra-tech:ComposeScratchEffect:$currentVersion'
}

Usage📓

You can use the ScratchCard() by simply passing this to the screen you want to use. For example:

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            ComposeScratchEffectTheme {
                ScratchCard()
            }
        }
    }
}

Reporting Issues and Requesting Features✨

If you encounter any issues or have feature requests, please create a new issue in this repository.

Supporting ComposeCards ❤️

Support it by joining stargazers for this repository. ⭐
Also follow me for my next creations! 🤩

License

Copyright 2023 aritra-tech

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.

About

✨ComposeScratchEffect is a library to understand scratching gift & coupons like effect. Made using Koltin & Jetpack Compose 🚀 with the use of Canvas

Topics

Resources

License

Stars

Watchers

Forks

Languages