xxxxxxxxxx
appBar: AppBar(
automaticallyImplyLeading: false,
elevation: 0,
leading: IconButton(
icon: SvgPicture.asset(
"assets/icons/transpp.svg",
color: Colors.white,
),
onPressed: () {},
),
xxxxxxxxxx
SvgPicture.asset(
'path to svg eg: assets/icons/svg/wrong_option.svg',
colorFilter: ColorFilter.mode(Colors.red, BlendMode.srcIn),
);
xxxxxxxxxx
BottomNavigationBarItem(
label: 'label',
icon: SvgPicture.asset(
iconPath,
),
activeIcon: SvgPicture.asset(
iconPath,
color: Colors.blue,
),
),
xxxxxxxxxx
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SvgPicture.asset(
'path/to/your/svg.svg',
color: Colors.blue, // Set the desired color here
);
}
}