Skip to content

Commit

Permalink
Draw non-zero paths only
Browse files Browse the repository at this point in the history
  • Loading branch information
n-bernat committed Mar 25, 2024
1 parent e1e5277 commit fcb1244
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flutter_kanjivg/lib/src/kanji_canvas.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ class _KanjiPainter extends CustomPainter {
}

// Draw it on a canvas.
canvas.drawPath(path, paint);
if (controller.value != 0) {
canvas.drawPath(path, paint);
}
}

@override
Expand Down

0 comments on commit fcb1244

Please sign in to comment.