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

Allow for the setting of a default String in the Text Field #60

Closed
josephlam1984 opened this issue Feb 27, 2019 · 3 comments
Closed

Allow for the setting of a default String in the Text Field #60

josephlam1984 opened this issue Feb 27, 2019 · 3 comments

Comments

@josephlam1984
Copy link

Is there a way we could set a default String (and a hint) in the Text field?

@KaYBlitZ
Copy link
Contributor

KaYBlitZ commented Mar 1, 2019

Have you tried this:

textFieldConfiguration: TextFieldConfiguration(
          decoration: InputDecoration(
            hintText: 'HINT_HERE',
          ),
        ),

@sjmcdowall
Copy link
Collaborator

Hint yes -- how exactly do you see the default string in the case of a search typeahead type field? You could always set it in the text controller (assuming you assign a TextController) ?? I think in a Form version you can set an initial value as well ..

But -- that assumes what you mean by "default" value .. If you would show / describe some use cases/user stories for examples that would help .

@sjmcdowall
Copy link
Collaborator

Closing due to no follow up on suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants