webf icon indicating copy to clipboard operation
webf copied to clipboard

Meet a invaild image error

Open 781jj opened this issue 2 years ago • 1 comments

Affected version

0.13.2

No same issues found

  • [X] Yes, I search all issues but not found.

Bug type

Others

Which frontend framework you are using.

Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git Framework • revision 135454af32 (3 weeks ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0

Steps to reproduce

  1. Update the flutter version to the newest version with flutter upgrade
  2. Integrate the openWebF with the document
  3. Change the url to https://docs.alipayplus.com/alipayplus/
  4. Meet a invalid image error

Code example

Widget build(BuildContext context) { final MediaQueryData queryData = MediaQuery.of(context); final Size viewportSize = queryData.size;

return Scaffold(
    body: Center(
      child: Column(
        children: [
          WebF(
            devToolsService: ChromeDevToolsService(), // Enable Chrome DevTools Services
            viewportWidth: viewportSize.width - queryData.padding.horizontal, // Adjust the viewportWidth
            viewportHeight: viewportSize.height - queryData.padding.vertical, // Adjust the viewportHeight
            bundle: WebFBundle.fromUrl('https://docs.alipayplus.com/alipayplus/'), // The page entry point
          ),
        ],
      ),
    ));

Expected results

Render the page suceessfully

Actual results

Render the page failed. And the AS print a invalid image error

image

781jj avatar Jan 06 '23 03:01 781jj

I have found this issues is caused by the openWebF is't support the SVG format image

781jj avatar Jan 06 '23 03:01 781jj