|
@@ -22,7 +22,7 @@ class FlowySvg extends StatelessWidget {
|
|
|
super.key,
|
|
|
this.size,
|
|
|
this.color,
|
|
|
- this.overrideColor = true,
|
|
|
+ this.blendMode = BlendMode.srcIn,
|
|
|
});
|
|
|
|
|
|
/// The data for the flowy svg. Will be generated by the generator in this
|
|
@@ -39,7 +39,7 @@ class FlowySvg extends StatelessWidget {
|
|
|
///
|
|
|
/// Defaults to true
|
|
|
///
|
|
|
- final bool overrideColor;
|
|
|
+ final BlendMode blendMode;
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
@@ -47,8 +47,8 @@ class FlowySvg extends StatelessWidget {
|
|
|
|
|
|
final child = SvgPicture.asset(
|
|
|
_normalized(),
|
|
|
- colorFilter: iconColor != null && overrideColor
|
|
|
- ? ColorFilter.mode(iconColor, BlendMode.srcIn)
|
|
|
+ colorFilter:
|
|
|
+ iconColor != null ? ColorFilter.mode(iconColor, blendMode)
|
|
|
: null,
|
|
|
);
|
|
|
|