-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Fix logic statements in year2023 documentation #174120
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
base: master
Are you sure you want to change the base?
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.
Code Review
This pull request corrects the logic in several documentation comments related to the year2023
flag. The changes correctly state that when year2023
is true, certain features like stop indicators and track gaps are disabled.
My review found that while the main part of the logic was fixed, the addition of or [ThemeData.useMaterial3] is false
to the conditions in progress_indicator.dart
and progress_indicator_theme.dart
appears to be incorrect based on the implementation. I've left comments with suggestions to simplify these conditions for better accuracy. The change in slider_theme.dart
looks correct.
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 correction.
If year2023 (old specification) is true, then the indicator doesn't have stop and gap. Not the other way around.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assist
bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.