Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text fields #24

Open
1 of 2 tasks
robinlahtinen opened this issue Jul 4, 2022 · 1 comment
Open
1 of 2 tasks

Text fields #24

robinlahtinen opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@robinlahtinen
Copy link
Member

robinlahtinen commented Jul 4, 2022

Design document: https://m3.material.io/components/text-fields

Task list

@robinlahtinen robinlahtinen self-assigned this Jul 4, 2022
@robinlahtinen robinlahtinen added the enhancement New feature or request label Jul 4, 2022
@robinlahtinen robinlahtinen added this to the v1 milestone Jul 4, 2022
@stephanebastian
Copy link

stephanebastian commented Mar 8, 2023

Just looking at the specification and it seems that prefix and suffix are not implemented yet.
Just for information, here is how the latest version of flutter renders things with all properties set (label, leading icon, prefix, hint, trailing icon, suffix)
image

Note that in flutter 'hint' is equivalent to 'placeholder' in material 3. As soon as you enter some text in the input field, the hint is hidden
To summarize a text field has the following properties:

  • Label text
  • Leading icon (optional)
  • Prefix text (optional)
  • Placeholder text (optional and hidden when 'input text' is not empty)
  • Input text (optional)
  • Suffix text (optional)
  • Trailing icon (optional)
  • Supporting text (optional)
  • Counter text (optional displayed whenever there is a limit on the number of characters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants