mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
PIN: address PR review
This commit is contained in:
+16
-5
@@ -20,8 +20,10 @@ import androidx.compose.foundation.background
|
|||||||
import androidx.compose.foundation.border
|
import androidx.compose.foundation.border
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||||
import androidx.compose.foundation.layout.FlowRow
|
import androidx.compose.foundation.layout.FlowRow
|
||||||
|
import androidx.compose.foundation.layout.Spacer
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.foundation.text.BasicTextField
|
import androidx.compose.foundation.text.BasicTextField
|
||||||
@@ -118,10 +120,19 @@ private fun PinDigitView(
|
|||||||
@Composable
|
@Composable
|
||||||
internal fun PinEntryTextFieldPreview() {
|
internal fun PinEntryTextFieldPreview() {
|
||||||
ElementPreview {
|
ElementPreview {
|
||||||
PinEntryTextField(
|
val pinEntry = PinEntry.createEmpty(4).fillWith("12")
|
||||||
pinEntry = PinEntry.createEmpty(4).fillWith("12"),
|
Column {
|
||||||
isSecured = true,
|
PinEntryTextField(
|
||||||
onValueChange = {},
|
pinEntry = pinEntry,
|
||||||
)
|
isSecured = true,
|
||||||
|
onValueChange = {},
|
||||||
|
)
|
||||||
|
Spacer(modifier = Modifier.size(16.dp))
|
||||||
|
PinEntryTextField(
|
||||||
|
pinEntry = pinEntry,
|
||||||
|
isSecured = false,
|
||||||
|
onValueChange = {},
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user