flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

fix #62 Specifying viewBox, width, and height in svg

Open vimaxwell opened this issue 1 year ago • 1 comments

fix svg with viewBox and width, height in #62

vimaxwell avatar Jul 21 '22 04:07 vimaxwell

In local testing using the SVG reported in #62, this makes no visual difference.

dnfield avatar Aug 17 '22 20:08 dnfield

@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
image image

vimaxwell avatar Nov 07 '22 03:11 vimaxwell