|
|
|
@ -15,6 +15,7 @@ import androidx.compose.foundation.layout.wrapContentSize
|
|
|
|
|
import androidx.compose.foundation.text.BasicTextField
|
|
|
|
|
import androidx.compose.foundation.text.InlineTextContent
|
|
|
|
|
import androidx.compose.foundation.text.KeyboardActions
|
|
|
|
|
import androidx.compose.foundation.text.KeyboardOptions
|
|
|
|
|
import androidx.compose.foundation.text.appendInlineContent
|
|
|
|
|
import androidx.compose.material.Icon
|
|
|
|
|
import androidx.compose.material.MaterialTheme
|
|
|
|
@ -29,6 +30,7 @@ import androidx.compose.ui.text.Placeholder
|
|
|
|
|
import androidx.compose.ui.text.PlaceholderVerticalAlign
|
|
|
|
|
import androidx.compose.ui.text.TextStyle
|
|
|
|
|
import androidx.compose.ui.text.buildAnnotatedString
|
|
|
|
|
import androidx.compose.ui.text.input.ImeAction
|
|
|
|
|
import androidx.compose.ui.text.style.TextAlign
|
|
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
|
|
import androidx.compose.ui.unit.TextUnit
|
|
|
|
@ -103,6 +105,7 @@ fun SessionOutlinedTextField(
|
|
|
|
|
modifier = Modifier.wrapContentHeight().fillMaxWidth(),
|
|
|
|
|
textStyle = mergedTextStyle,
|
|
|
|
|
cursorBrush = SolidColor(LocalColors.current.text(error != null)),
|
|
|
|
|
keyboardOptions = KeyboardOptions.Default.copy(imeAction = ImeAction.Done),
|
|
|
|
|
keyboardActions = KeyboardActions(
|
|
|
|
|
onDone = { onContinue() },
|
|
|
|
|
onGo = { onContinue() },
|
|
|
|
|