-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reduce animations further when --no-cli-animations is set. #133598
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
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.
Is this better than just looking up globals.featureFlags.isCliAnimationEnabledinside the AnsiTerminal class? It could be a lazily initialized late final property?
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.
I feel like everything we set here or in FlutterCommandRunner.runCommand() is a gotcha easter egg.
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.
I guess if I'm using global variables anyway I might as well do it as a late final, sure.
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.
So I started doing this but I got stuck because I can't figure out what the long-term plan is here. In the PR as posted, the long-term plan would be to pass the FeatureFlags and the AnsiTerminal to the runner and have it apply one to the other, or (better) to have the code that creates the AnsiTerminal and the FeatureFlags apply one to the other before giving it to the runner, but if the AnsiTerminal doesn't get given a FeatureFlags at all then I don't understand how we replace the call to the globals in the AnsiTerminal code.
|
@Hixie are you still planning to land this one? |
|
Yeah I'll get to it eventually. Need to make time to apply the change you suggested. |
christopherfujino
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
|
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. |
|
@Hixie looks like you have build errors |
|
@Hixie is this ready for the autosubmit label now? |
flutter/flutter@53a57ad...6cf9ab0 2023-11-18 [email protected] Roll Flutter Engine from 53c4fde7732b to d7af5fb60b4c (2 revisions) (flutter/flutter#138668) 2023-11-18 [email protected] Update release.yml (flutter/flutter#138561) 2023-11-18 [email protected] Roll Flutter Engine from 384f75061257 to 53c4fde7732b (2 revisions) (flutter/flutter#138660) 2023-11-18 [email protected] Roll Flutter Engine from 5f40c9f49f88 to 384f75061257 (2 revisions) (flutter/flutter#138658) 2023-11-18 [email protected] Roll Flutter Engine from 66f764a16610 to 5f40c9f49f88 (1 revision) (flutter/flutter#138655) 2023-11-18 [email protected] Roll Flutter Engine from 1d2ee544c5e5 to 66f764a16610 (1 revision) (flutter/flutter#138652) 2023-11-18 [email protected] Roll Flutter Engine from c38272b5e036 to 1d2ee544c5e5 (3 revisions) (flutter/flutter#138650) 2023-11-17 [email protected] Roll Flutter Engine from e010f17eeb10 to c38272b5e036 (4 revisions) (flutter/flutter#138647) 2023-11-17 [email protected] Update links and surrounding text for new `main-api` docs (flutter/flutter#138602) 2023-11-17 [email protected] Roll Flutter Engine from 141a01c5c70b to e010f17eeb10 (2 revisions) (flutter/flutter#138643) 2023-11-17 [email protected] Roll Flutter Engine from 90c3ada3682c to 141a01c5c70b (16 revisions) (flutter/flutter#138637) 2023-11-17 [email protected] Roll Flutter Engine from 5064aeff00de to 90c3ada3682c (9 revisions) (flutter/flutter#138599) 2023-11-17 [email protected] Fix NoSplash not being disposed (flutter/flutter#138542) 2023-11-17 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Introduce `AnimationStyle`" (flutter/flutter#138628) 2023-11-17 [email protected] Enable `flutter screenshot` outside Flutter project directory (flutter/flutter#138160) 2023-11-17 [email protected] Roll Flutter Engine from aae07e989b0a to 5064aeff00de (2 revisions) (flutter/flutter#138585) 2023-11-16 [email protected] Improves output file path logic in Android analyze (flutter/flutter#136981) 2023-11-16 [email protected] Turn off leak tracker in master to make found leaks not blocking. (flutter/flutter#138567) 2023-11-16 [email protected] Roll Flutter Engine from 094a3383a406 to aae07e989b0a (2 revisions) (flutter/flutter#138574) 2023-11-16 [email protected] Enable the silent flag for invalid string exceptions when building a TextSpan (flutter/flutter#138564) 2023-11-16 [email protected] Roll Flutter Engine from 22baa83db63b to 094a3383a406 (13 revisions) (flutter/flutter#138568) 2023-11-16 [email protected] #60704: Pass cert for TLS localhost connection (flutter/flutter#106635) 2023-11-16 [email protected] Bump cupertino_icons to 1.0.6 (flutter/flutter#136962) 2023-11-16 [email protected] Fix sliver persistent header expand animation (flutter/flutter#137913) 2023-11-16 [email protected] Reduce animations further when --no-cli-animations is set. (flutter/flutter#133598) 2023-11-16 [email protected] Roll Flutter Engine from 0c57a50810e8 to 22baa83db63b (4 revisions) (flutter/flutter#138560) 2023-11-16 [email protected] Introduce `AnimationStyle` (flutter/flutter#137945) 2023-11-16 [email protected] Just use string interpolation for ws url for tests (flutter/flutter#138235) 2023-11-16 [email protected] Adding new packages to the first-party package issue template (flutter/flutter#138540) 2023-11-16 [email protected] Roll Packages from 0cd2378 to 07b4b29 (3 revisions) (flutter/flutter#138549) 2023-11-16 [email protected] Roll Flutter Engine from 2e9f0df868b3 to 0c57a50810e8 (1 revision) (flutter/flutter#138546) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
| // TODO(ianh): We should remove AppContext's mechanism and replace it with | ||
| // passing dependencies directly in constructors, methods, etc. | ||
|
|
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.
Was an issue for this created? I just noticed this todo and it seems like it'd be a huge change to the tool's codebase.
(I'm also curious to learn why you're not happy anymore with the AppContext mechanism)
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.
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!
[Source](#133598 (comment)) For future readers.
No description provided.