websafe_svg 1.0.3 websafe_svg: ^1.0.3 copied to clipboard
Simple abstraction to be able to use SVGs in Android, iOS, and Web.
websafe_svg #
A Flutter compatible library to handle SVGs for Android, iOS, and Web.
The color
attribute will replace all HTML / Hex based color values in the SVG with the given color.
Using the library #
Add the repo to your Flutter pubspec.yaml
file.
dependencies:
websafe_svg: <<version>>
Then run...
flutter packages get
Supports #
asset
network
memory
string
Example #
import 'package:websafe_svg/websafe_svg.dart';
...
Widget build(BuildContext context) {
return WebsafeSvg.asset(...);
}