Consistent codestyle
This commit is contained in:
parent
18af642f3f
commit
134bec7c97
1 changed files with 11 additions and 3 deletions
|
@ -36,7 +36,11 @@ fun BasicField(
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun EmailField(value: String, onNewValue: (String) -> Unit, modifier: Modifier = Modifier) {
|
fun EmailField(
|
||||||
|
value: String,
|
||||||
|
onNewValue: (String) -> Unit,
|
||||||
|
modifier: Modifier = Modifier
|
||||||
|
) {
|
||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
|
@ -48,7 +52,11 @@ fun EmailField(value: String, onNewValue: (String) -> Unit, modifier: Modifier =
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun PasswordField(value: String, onNewValue: (String) -> Unit, modifier: Modifier = Modifier) {
|
fun PasswordField(
|
||||||
|
value: String,
|
||||||
|
onNewValue: (String) -> Unit,
|
||||||
|
modifier: Modifier = Modifier
|
||||||
|
) {
|
||||||
PasswordField(value, AppText.password, onNewValue, modifier)
|
PasswordField(value, AppText.password, onNewValue, modifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,4 +99,4 @@ private fun PasswordField(
|
||||||
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password),
|
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password),
|
||||||
visualTransformation = visualTransformation
|
visualTransformation = visualTransformation
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue