-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Add splashColor property for ListTile widget #100652
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
Add splashColor property for ListTile widget #100652
Conversation
@HansMuller |
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.
This looks pretty close, just needs some small tweaks.
final Widget buildApp = MaterialApp( | ||
home: Material( | ||
child: Center( | ||
child: StatefulBuilder(builder: (BuildContext context, StateSetter setState) { |
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.
This StatefulBuilder isn't needed.
@@ -1294,6 +1294,33 @@ void main() { | |||
); | |||
}); | |||
|
|||
testWidgets('ListTile can be splashed and has correct splash color', (WidgetTester tester) async { | |||
final Widget buildApp = MaterialApp( | |||
home: Material( |
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.
Two-space indent
home: Material( | ||
child: Center( | ||
child: StatefulBuilder(builder: (BuildContext context, StateSetter setState) { | ||
return Container( |
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.
This container doesn't appear to be needed either.
Thank you for your help 👍🏾👏🏾 |
5433721
to
92439d4
Compare
…lor_for_ListTile_widget
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Another merge should do the trick, also it looks like you're missing the CLA. |
1c014f0
to
7311c9a
Compare
This PR looks like a reasonable and narrowly focused change however it has failed many presubmit tests. It may be possible to get it going by rebasing with the latest code. |
OK Thank you I will try to rebase it |
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
auto label is removed for flutter/flutter, pr: 100652, due to - Please get at least one approved review if you are already a member or two member reviews if you are not a member before re-applying this label. Reviewers: If you left a comment approving, please use the "approve" review action instead. |
auto label is removed for flutter/flutter, pr: 100652, due to Validations Fail. |
Adds a
splashColor
property toListTile
widget & test it,Fixes #99898
Pre-launch Checklist
///
).I can't pass all existing tests because my Mac slow, but I passed ListTile test.