-
Notifications
You must be signed in to change notification settings - Fork 29.7k
TextField should support disabled input text style #119216
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
TextField should support disabled input text style #119216
Conversation
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Could this be private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly did this because input_decorator does the same here
| Set<MaterialState> get materialState { |
|
I think in #118568 the suggestion was that |
You are right! Should be using |
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes. I agree it's probably safer to make _materialState private for now. We can easily open it up if people ask for it for some reason.
|
CC @Hangyujin Wondering if you had any thoughts on this implementation since you migrated |
hannah-hyj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fa1dc9d to
b5eba6f
Compare
|
auto label is removed for flutter/flutter, pr: 119216, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
Looks like failing tests are related to users implementing their own method to have a disabled input style in a text field. I'll need to go through the tests and see whats the best way forward. |
3104fca to
de113c3
Compare
fec0198 to
42cce4a
Compare
|
This one needs another review because a few changes have been made. Mostly refactoring and using tokens and generators. Thank you! |
b162fb3 to
ae07f6a
Compare
ae07f6a to
3ade905
Compare
d1312fc to
458dbec
Compare
458dbec to
df3cbc0
Compare
|
Merging this since all failures are expected. |
Fixes #118568
Pre-launch Checklist
///).