smart_svg_image 0.0.3
smart_svg_image: ^0.0.3 copied to clipboard
A Flutter widget that intelligently renders SVG images with enhanced compatibility. Automatically resolves common SVG rendering issues and provides seamless image display.
import 'package:flutter/material.dart';
import 'package:smart_svg_image/smart_svg_image.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('SmartSvgImage Example')),
body: Center(
child: SmartSvgImage(
svgAssetPath: 'assets/images/logo.svg',
height: 200,
width: 200,
),
),
),
);
}
}