Closed
Description
If I apply the following patch to Flutter's repository (at aa80bd6), and then run the analyzer (flutter analyze --flutter-repo
), then the code goes from having zero warnings to having lots of warnings to the effect of [warning] Missing concrete implementation of 'RenderObject.applyPaintTransform'
.
$ git diff upstream/master --stat ; git diff upstream/master
packages/flutter/lib/src/rendering/box.dart | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart
index 4c57d43..6f98b7c 100644
--- a/packages/flutter/lib/src/rendering/box.dart
+++ b/packages/flutter/lib/src/rendering/box.dart
@@ -624,7 +624,7 @@ abstract class RenderBox extends RenderObject {
///
/// The RenderBox implementation takes care of adjusting the matrix for the
/// position of the given child.
- void applyPaintTransform(RenderObject child, Matrix4 transform) {
+ void applyPaintTransform(RenderBox child, Matrix4 transform) {
assert(child.parent == this);
BoxParentData childParentData = child.parentData;
Point position = childParentData.position;
RenderBox
is a subtype of RenderObject
and the method is not abstract anywhere, it's concretely defined everywhere.
See: flutter/flutter#887
https://travis-ci.org/flutter/flutter/builds/96211427