Paint functions use save/restore around children #191
Copy link
Copy link
Closed
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Issue by Hixie
Thursday Oct 08, 2015 at 17:05 GMT
Originally opened as https://github.com/flutter/engine/issues/1537
For example, RenderStack.paint() uses context.canvas.save(); and context.canvas.clipRect(offset & size);. This in theory will fail once things use layers.
There are several problems here:
- RenderStack.paint() uses save/restore around paintChild.
- The assert that's supposed to catch this isn't firing.
(Add any other paint() functions that do this to the list above as you find them.)
cc @abarth, @chinmaygarde
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Activity
FlutterIssues commentedon Nov 9, 2015
Friday Oct 23, 2015 at 00:37 GMT
There are a bunch of these. Grep for
context.canvas.saveSome paint functions were using canvas.save/restore around children
Revert "Compile libcxx and libcxxabi (flutter#190)" (flutter#191)
github-actions commentedon Aug 17, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.