flutter_svg_icons

Last updated:

0 purchases

flutter_svg_icons Image
flutter_svg_icons Images
Add to Cart

Description:

flutter svg icons

Flutter SVG Icons
A package to show svg asset files in icon widgets, supporting responsive svg icons.
Features #

Show svg asset files in icon widgets.
Support responsive icons.

Getting started #
In pubspec.yaml file, insert flutter_svg_icons as dependency:
flutter_svg_icons: ^0.0.1
copied to clipboard
Usage #
Make sure that your svg files are added to your project assets.

Svg Icon - by default, its color will be the same as icon theme color.

SvgIcon(icon: SvgIconData('assets/flutter_logo.svg'))
copied to clipboard

Svg Icon - disable responsiveColor and set custom color.

SvgIcon(color: Colors.red, responsiveColor:false, icon: SvgIconData('assets/flutter_logo.svg'))
copied to clipboard

Responsive Svg Icon

SvgIcon(icon: ResponsiceSvgIconData({
64: 'assets/archive_s.svg',
128: 'assets/archive_m.svg',
9999: 'assets/archive_l.svg'
}))
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.