flutter_svg
flutter_svg copied to clipboard
fix #62 Specifying viewBox, width, and height in svg
fix svg with viewBox and width, height in #62
In local testing using the SVG reported in #62, this makes no visual difference.
@dnfield sorry for late reply.
This is my demo code for rendering svg image .
void main() {
runApp(MaterialApp(
home: Scaffold(
body: Center(
child: Container(
color: Colors.blue[200],
child: SvgPicture.network(
'https://math.vercel.app/?from=%5Cfrac%7B1%7D%7B%5CGamma%28s%29%7D%5Cint_%7B0%7D%5E%7B%5Cinfty%7D%5Cfrac%7Bu%5E%7Bs-1%7D%7D%7Be%5E%7Bu%7D-1%7D%5Cmathrm%7Bd%7Du.svg',
placeholderBuilder: (BuildContext context) => Container(
padding: const EdgeInsets.all(30.0),
child: const CircularProgressIndicator(),
),
),
),
),
),
));
}
Before | After |
---|---|
![]() |
![]() |