material-components / material-components/material-components-android

[TextField] Add option to allow suffix flow with the text

Open
#750 6 comments 28 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting Design Feedback feature request Widget: TextField
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.