Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xVemu
Copy link
Contributor

@xVemu xVemu commented Aug 20, 2025

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.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Aug 20, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@dkwingsmt dkwingsmt requested a review from QuncCccccc August 20, 2025 18:31
Copy link
Contributor

@QuncCccccc QuncCccccc left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants