-
Notifications
You must be signed in to change notification settings - Fork 335
Comments
Adding TextField migration snippets#522
Open
halilozercan wants to merge 2 commits intoandroid:main from
Open
Conversation
This is for the new version of https://developer.android.com/develop/ui/compose/text/user-input
Here is the summary of changes.
You are about to add 13 region tags.
- compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:46, tag
android_compose_text_textfield_migration_old_simple - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:58, tag
android_compose_text_textfield_migration_new_simple - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:68, tag
android_compose_text_textfield_migration_old_filtering - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:81, tag
android_compose_text_textfield_migration_new_filtering - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:95, tag
android_compose_text_textfield_migration_old_credit_card_formatter - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:136, tag
android_compose_text_textfield_migration_new_credit_card_formatter - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:156, tag
android_compose_text_textfield_migration_old_update_state_simple - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:170, tag
android_compose_text_textfield_migration_new_update_state_simple - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:182, tag
android_compose_text_textfield_migration_old_state_update_complex - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:211, tag
android_compose_text_textfield_migration_new_state_update_complex - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:231, tag
android_compose_text_textfield_migration_old_viewmodel - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:269, tag
android_compose_text_textfield_migration_new_viewmodel_simple - compose/snippets/src/main/java/com/example/compose/snippets/text/TextFieldMigrationSnippets.kt:289, tag
android_compose_text_textfield_migration_new_viewmodel_conforming
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
- Refresh this comment
import androidx.compose.material.SecureTextField
//noinspection UsingMaterialAndMaterial3Libraries
import androidx.compose.material.Text
//noinspection UsingMaterialAndMaterial3Libraries
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the latest Material3 stable release does not have the new TextField. It's still in alpha track.
MagicalMeghan
MagicalMeghan
approved these changes
May 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 is for the new version of https://developer.android.com/develop/ui/compose/text/user-input