Skip to content

Commit

Permalink
✨ Add keyboard options to reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
paul2126 committed Nov 25, 2023
1 parent 47e9bd5 commit 85dbd4c
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand All @@ -14,6 +15,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import com.example.speechbuddy.R
Expand Down Expand Up @@ -66,7 +68,11 @@ fun ResetPasswordScreen(
},
isError = isPasswordError,
isValid = uiState.isValidPassword,
isHidden = true
isHidden = true,
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Password,
autoCorrect = false
)
)

TextFieldUi(
Expand All @@ -82,7 +88,11 @@ fun ResetPasswordScreen(
},
isError = isError,
isValid = uiState.isValidPassword,
isHidden = true
isHidden = true,
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Password,
autoCorrect = false
)
)

Spacer(modifier = Modifier.height(20.dp))
Expand Down

0 comments on commit 85dbd4c

Please sign in to comment.