-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Added expandedColor and color property to ExpansionPanelList arrow icon. #96705
Conversation
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.
Thank you so much for your contribution.
I just have a few nits and suggestions.
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.
Sorry for the delay. Minor nits and doc suggestions.
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.
You'll need an LGTM from another member too, I suppose that'll be @HansMuller.
/// Defaults to [Colors.black54] when the theme's | ||
/// [ThemeData.brightness] is [Brightness.light] and to | ||
/// [Colors.white] when it is [Brightness.dark]. |
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.
Looks like this code is just copied from https://master-api.flutter.dev/flutter/material/ExpandIcon/expandedColor.html? Maybe use a macro so we don't forget to update it here should it ever change.
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.
"Maybe use a macro so we don't forget to update it here should it ever change."
Hi, I didn't get 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.
@goderbauer any updates??
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.
https://pub.dev/packages/dartdoc#macros - look for examples of this in our docs.
/// Defaults to [Colors.black54] when the theme's | ||
/// [ThemeData.brightness] is [Brightness.light] and to | ||
/// [Colors.white60] when it is [Brightness.dark]. |
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.
Same as below.
Hi @goderbauer , can you tell what's all the failed check error means??. |
There are problems reported for the newly added doc macros:
Furthermore, you probably have to merge in the latest master to resolve the other test failures. |
@@ -58,7 +58,7 @@ typedef ExpansionPanelHeaderBuilder = Widget Function(BuildContext context, bool | |||
/// expanded or collapsed. The body of the panel is only visible when it is | |||
/// expanded. | |||
/// | |||
/// {@youtube 560 315 https://www.youtube.com/watch?v=2aJZzRMziJc} | |||
///{@youtube 560 315 https://www.youtube.com/watch?v=2aJZzRMziJc} |
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.
please leave the space here.
@@ -243,6 +247,16 @@ class ExpansionPanelList extends StatefulWidget { | |||
/// is null, then [ThemeData.dividerColor] is used. | |||
final Color? dividerColor; | |||
|
|||
/// The color of the arrow icon when the panel is collapsed. | |||
/// | |||
/// {@macro flutter.material.ExpandIcon.color} |
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.
Looks like there is no template defined for this macro? That's why the doc check is failing.
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. |
This PR appears to have gone stale, comments from late May haven't been addressed. I'm going to close it now; if you decide to resume work feel free to reopen it. |
@dheerajv09 |
Adds expandedColor and color property to ExpansionPanelList expanded icon.
fixes #95011