From f50c0c0cb286d5e55b84d9e5b0128af366b906fc Mon Sep 17 00:00:00 2001 From: Ali Shayanpoor <56270506+XAli-SHX@users.noreply.github.com> Date: Sat, 22 Apr 2023 08:38:49 +0330 Subject: [PATCH] Add a modifier for cells The cell's modifier name is "cellModifier" --- speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt b/speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt index 5a56ecd..015576b 100644 --- a/speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt +++ b/speld/src/main/java/com/yogeshpaliyal/speld/OtpView.kt @@ -61,6 +61,7 @@ fun OtpCell( @Composable fun PinInput( modifier: Modifier = Modifier, + cellModifier: Modifier = Modifier, length: Int = 5, value: String = "", disableKeypad: Boolean = false, @@ -97,7 +98,7 @@ fun PinInput( ) { repeat(length) { OtpCell( - modifier = Modifier + modifier = cellModifier .size(width = 45.dp, height = 45.dp) .clip(MaterialTheme.shapes.large) .background(