-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Updates to debugDisableShadows #17577
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
1. Make BoxShadow.toPaint() add a stroke so that we can see where shadows would have otherwise been painted. 2. Make CupertinoSwitch use BoxShadow.toPaint() so that it respects the `debugDisableShadows` flag.
Code changes in flutter/flutter#17577
| new Radius.circular(rect.shortestSide / 2.0), | ||
| ); | ||
|
|
||
| final Paint shadowPaint = new BoxShadow( |
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.
let's create that in the constructor
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 still applies :-)
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.
Weird - hadn't seen this before. Done.
| result.maskFilter = null; | ||
| if (debugDisableShadows) { | ||
| result | ||
| ..maskFilter = null; |
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 assume you meant to revert this :-)
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.
Yep - done
| final Color shadowColor; | ||
|
|
||
| /// The paint used to draw the shadow case by the thumb. | ||
| Paint _shadowPaint; |
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 can be final if you set it in the constructor initialiser list
|
Merging on red because the redness is a suspected flake that we're unable to restart. |
This reverts commit c4cb0ec.
This reverts commit c4cb0ec.
shadows would have otherwise been painted.
the
debugDisableShadowsflag.