material-components / material-components/material-components-android
[TextField] Add option to allow suffix flow with the text
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description**
Finally, new prefix and suffix attributes have been added for text fields.
The suffix is fixed at the end of the text field and cannot be made to flow with the input text.
**The solution**
Add the functionality and an option (attribute) to text field so that the developer can specify whether the suffix should be fixed or it should flow at the end of the input text.
**Alternatives**
Currently, this feature can be implemented without using `suffixText` attribute.
It requires a text listener that appends the suffix when the text is changed.
See the [related stack overflow post](https://stackoverflow.com/a/58779635/8583692).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TextField implementation and the existing suffixText attribute, then review the linked Stack Overflow example for the requested behavior. Done means developers can choose whether the suffix remains fixed or flows at the end of the input text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- design, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100