Reimagining text fields in Compose
summary
A redesigned text field API ships in 1.6 alphas with a new basic text field two that hoists internal state into a mutable text field state and a mutable text field buffer, supports observing edits as a Flow, and exposes scroll state. Input and output transformations let code filter digits, format phone numbers, and map offsets correctly. A separate secure field component handles masking and IME behavior. A 16-person user study guided these changes and output transformation is still in progress.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 6:06New text field APIs
- 14:14State management changes
- 20:34Input and output transformations
- 23:42Password field and line limits
- 26:47Scroll state and API improvements
- 28:52Feedback and next steps
- 29:53Q&A








