avs_svg_provider 1.0.1 copy "avs_svg_provider: ^1.0.1" to clipboard
avs_svg_provider: ^1.0.1 copied to clipboard

Flutter package to use your SVG files as an ImageProvider. Use Asset and Network SVG files.

AVS SVG Provider #

The AVSSVGProvider package. A Flutter package to use your SVG files as an ImageProvider.

With the package you can color SVG files with color and LinearGradient.

Getting started #

No permission is needed.

Usage #

Please review the example folder

Container(
    width: MediaQuery.sizeOf(context).width,
    height: MediaQuery.sizeOf(context).width,
    alignment: Alignment.center,
    decoration: BoxDecoration(
        image: DecorationImage(
            fit: BoxFit.contain,
            image: AVSSVGProvider(
                'assets/layer1.svg',
                scale: 9,
                gradient: const LinearGradient(
                colors: <Color>[Colors.red, Colors.blue],
                begin: Alignment.topLeft,
                end: Alignment.bottomRight,
                ),
            ),
        ),
    ),
    child: const Text(
                "AVSSVGProvider Gradient Example",
                style: TextStyle(color: Colors.white),
    ),
),
 

Using SVG Color #

Image(
    image: AVSSVGProvider(
        'assets/layer3.svg',
    ),
),

Screenshot #

Screenshot

Additional information #

ahmetveysel.com

#

4
likes
160
points
447
downloads

Publisher

verified publisherahmetveysel.com

Weekly Downloads

Flutter package to use your SVG files as an ImageProvider. Use Asset and Network SVG files.

Homepage
Repository (GitHub)
View/report issues

Topics

#svg-provider #flutter-svg-provider #flutter-svg #avs-svg-provider

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_svg, http

More

Packages that depend on avs_svg_provider