avs_svg_provider

Creator: coderz1093

Last updated:

Add to Cart

Description:

avs svg provider

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),
),
),

copied to clipboard
Using SVG Color #
Image(
image: AVSSVGProvider(
'assets/layer3.svg',
),
),
copied to clipboard
Screenshot #

Additional information #
ahmetveysel.com
#

License

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

Files:

Customer Reviews

There are no reviews.