TextField in Jetpack Compose:past, present and future
summary
New Jetpack Compose text APIs replace the old value/callback shape with a state object and provide concrete tools: basic text field 2 with rememberTextFieldState, textAsFlow and forEachTextValue for debounceable async validation, a TextFieldBuffer edit session API for append/replace/select, built‑in input filters and chained input transformation and an implicit output transformation (not merged yet). Features available in Compose 1.6 alpha: secure text field with obfuscation modes, scroll and undo state, and a separate text2 package—try now but treat as experimental.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:49Past APIs recap
- 10:44New shiny APIs
- 21:38Programmatic edits
- 24:06Visual transformation
- 34:38Password field
- 37:26Scroll and undo state
- 39:31Future plans and feedback
related talks
35mReimagining text fields in Compose
39mUnderstanding Compose Text Field
38mWrite it down: Using text in Jetpack Compose
24mMastering Text Input in Compose
20mMastering Text Input in Compose
26mDeep Dive into Jetpack Compose Text
32mCompose your Text
39mBuild a Vertical Text Editor with Android 16 × Jetpack Compose
