In layers_test create a canvas to start recording on the PictureRecorder (#60660)
This commit is contained in:
@@ -277,6 +277,7 @@ void main() {
|
||||
final PictureLayer pictureLayer = PictureLayer(Rect.zero);
|
||||
checkNeedsAddToScene(pictureLayer, () {
|
||||
final PictureRecorder recorder = PictureRecorder();
|
||||
Canvas(recorder);
|
||||
pictureLayer.picture = recorder.endRecording();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user