We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d8a41 commit 196ca91Copy full SHA for 196ca91
lib/src/models.dart
@@ -36,11 +36,13 @@ class BlobStyles {
36
Shader? gradient;
37
int? strokeWidth;
38
BlobFillType? fillType;
39
+ BlendMode? blendMode;
40
BlobStyles({
41
this.color,
42
this.gradient,
43
this.fillType,
44
this.strokeWidth,
45
+ this.blendMode,
46
});
47
}
48
lib/src/painter/tools.dart
@@ -67,6 +67,9 @@ Paint createPaint(BlobStyles? styles) {
67
paint.shader = styles.gradient;
68
paint.strokeWidth = (styles.strokeWidth ?? BlobConfig.strokeWidth).toDouble();
69
paint.style = fillType[styles.fillType ?? BlobConfig.fillType]!;
70
+ if (styles.blendMode != null) {
71
+ paint.blendMode = styles.blendMode!;
72
+ }
73
74
return paint;
75
0 commit comments