Skip to content

SamuelMTDavies/flutter_svg_icons

 
 

Repository files navigation

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

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'))
  • Svg Icon - disable responsiveColor and set custom color.
SvgIcon(color: Colors.red, responsiveColor:false, icon: SvgIconData('assets/flutter_logo.svg'))
  • Responsive Svg Icon
SvgIcon(icon: ResponsiceSvgIconData({
      64: 'assets/archive_s.svg',
      128: 'assets/archive_m.svg',
      9999: 'assets/archive_l.svg'
    }))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 32.2%
  • CMake 29.9%
  • C++ 16.7%
  • HTML 15.9%
  • C 2.9%
  • Swift 1.7%
  • Other 0.7%