Skip to content

Add Clip enum and default to not clip #18057

@Hixie

Description

@Hixie

The following should just show a rotated black small box:

      new Center(
	child: new RepaintBoundary(
	  child: new Container(
	    color: Colors.white,
            child: new Padding(
              padding: const EdgeInsets.all(100.0),
              child: new SizedBox(
		height: 100.0,
                width: 100.0,
                child: new Transform.rotate(
	          angle: 1.0, // radians                                                                                        
	          child: new ClipRect(
                    child: new Container(
                      color: Colors.red,
                      child: new Container(
                        color: Colors.white,
                        child: new RepaintBoundary(
                          child: new Center(
                            child: new Container(
                              color: Colors.black,
                              height: 10.0,
	                      width: 10.0,
                            ),
                          ),
                        ),
                      ),  
                    ),
                  ),
	        ),
	      ),
            ),
          ),
	),
      ),

Instead it renders like this:

Metadata

Metadata

Assignees

Labels

c: API breakBackwards-incompatible API changesc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions