feat: Add SecureTextField component and update TextField #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces the
SecureTextField
component, which is a text input field designed for securely entering private text like passwords. It also updates theTextField
component with enhanced functionality.close #103
close #114
Key changes:
SecureTextField
component that obscures the entered text.textObfuscationMode
andtextObfuscationCharacter
.BasicSecureTextField
for the core text field functionality.KeyboardType.Password
by default.TextField
component and add supportTextFieldState
,header
,placeholder
,trailing
,leadingIcon
,clear
.TextField
use newTextFieldState
.HeaderContainer
composable is updated to use a customLayout
with aHeaderMeasurePolicy
to correctly measure and position the header and content.TextField
andSecureTextField
composables now pass theheader
directly to theDecorationBox
.DecorationBox
inTextFieldDefaults
is updated to accept and display theheader
.Container
composable is introduced withinTextFieldDefaults.DecorationBox
to encapsulate the visual styling of the TextField, including border and background.modifier
parameter for drawing the bottom line is removed fromTextFieldDefaults.DecorationBox
as this is now handled by the newContainer
.SecureTextField
andTextField
in the Gallery app.