In layers_test create a canvas to start recording on the PictureRecorder (#60660)

This commit is contained in:
Jason Simmons
2020-07-07 17:44:02 -07:00
committed by GitHub
parent 11ff938af5
commit 5cf0d73764

View File

@@ -277,6 +277,7 @@ void main() {
final PictureLayer pictureLayer = PictureLayer(Rect.zero);
checkNeedsAddToScene(pictureLayer, () {
final PictureRecorder recorder = PictureRecorder();
Canvas(recorder);
pictureLayer.picture = recorder.endRecording();
});