allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ehsannarmani:OtpCompose:latest_version'
}
Otp(
count = 5,
error = false,
success = true,
errorColor = Color(0xffffffff),
successColor = Color(0xffffffff),
focusedColor = Color(0xff313131),
unFocusedColor = Color.Gray,
onFinish = { otp->
// do something
},
modifier=Modifier.size(60.dp,90.dp),
...
)
- Add new features
- Add paste feature