Skip to content

Commit 8553411

Browse files
committed
Disable automatic padding from Frames with strokes.
1 parent 2d2e28e commit 8553411

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/src/api/mixins.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,11 @@ mixin GeometryMixin on BaseNode {
614614
/// Returns true if the node has any fills that can be interpreted as strokes.
615615
bool get hasStroke => strokes.isNotEmpty && strokeWeight > 0;
616616

617-
@override
618-
EdgeInsetsModel minimumPadding() {
619-
final double additionalPadding = strokes.isNotEmpty ? strokeWeight : 0.0;
620-
return super.minimumPadding() + EdgeInsetsModel.all(additionalPadding);
621-
}
617+
// @override
618+
// EdgeInsetsModel minimumPadding() {
619+
// final double additionalPadding = strokes.isNotEmpty ? strokeWeight : 0.0;
620+
// return super.minimumPadding() + EdgeInsetsModel.all(additionalPadding);
621+
// }
622622

623623
/// If an image is in the fills, allow shrink-wrapping up to to a fixed
624624
/// minimum.

0 commit comments

Comments
 (0)