webf
webf copied to clipboard
Meet a invaild image error
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
- Update the flutter version to the newest version with
flutter upgrade
- Integrate the openWebF with the document
- Change the url to
https://docs.alipayplus.com/alipayplus/
- 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
I have found this issues is caused by the openWebF is't support the SVG format image