We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe57bd commit a747e22Copy full SHA for a747e22
example/lib/universal_ui/universal_ui.dart
@@ -44,8 +44,12 @@ class ImageEmbedBuilderWeb implements EmbedBuilder {
44
return const SizedBox();
45
}
46
final size = MediaQuery.of(context).size;
47
- UniversalUI().platformViewRegistry.registerViewFactory(
48
- imageUrl, (viewId) => html.ImageElement()..src = imageUrl);
+ UniversalUI().platformViewRegistry.registerViewFactory(imageUrl, (viewId) {
+ return html.ImageElement()
49
+ ..src = imageUrl
50
+ ..style.height = 'auto'
51
+ ..style.width = 'auto';
52
+ });
53
return Padding(
54
padding: EdgeInsets.only(
55
right: ResponsiveWidget.isMediumScreen(context)
0 commit comments