File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -796,17 +796,16 @@ class FlutterActorArtboard extends ActorArtboard {
796796 FlutterActorArtboard (FlutterActor actor) : super (actor);
797797
798798 void draw (ui.Canvas canvas) {
799- if (drawableNodes == null || drawableNodes.isEmpty) {
800- return ;
801- }
802799 if (clipContents) {
803800 canvas.save ();
804801 AABB aabb = artboardAABB ();
805802 canvas.clipRect (Rect .fromLTRB (aabb[0 ], aabb[1 ], aabb[2 ], aabb[3 ]));
806803 }
807- for (final ActorDrawable drawable in drawableNodes) {
808- if (drawable is FlutterActorDrawable ) {
809- (drawable as FlutterActorDrawable ).draw (canvas);
804+ if (drawableNodes != null ) {
805+ for (final ActorDrawable drawable in drawableNodes) {
806+ if (drawable is FlutterActorDrawable ) {
807+ (drawable as FlutterActorDrawable ).draw (canvas);
808+ }
810809 }
811810 }
812811 if (clipContents) {
You can’t perform that action at this time.
0 commit comments