import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/flutter_svg.dart';
class TestScreen extends ConsumerWidget {
const TestScreen({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
return Scaffold(
body: Center(
child: SvgPicture.asset(
'assets/business_card/Frame.svg',
colorFilter: const ColorFilter.mode(Colors.blue, BlendMode.color),
),
),
);
}
}
when I use this I can change the SVG color from red gradient to blue gradient but I'm getting background color as well. how to remove this background color
I tried BlendMode.srcIn options so I can change the color with a transparent background, but it will be a solid color, not a gradient, so I want to use BlendMode.Color but when I use BlendMode.color I'm getting a background color as well

src?dstInas a BlendMode