Refactor code

pull/635/head
X Code 3 years ago
parent 0d64647461
commit 122b3c0e59
  1. 6
      lib/src/widgets/embeds/default_embed_builder.dart

@ -67,14 +67,14 @@ Widget defaultEmbedBuilder(BuildContext context, QuillController controller,
showCupertinoModalPopup<void>(
context: context,
builder: (context) {
final _screenSize = MediaQuery.of(context).size;
return ImageResizer(
imageNode: res.item2!,
offset: res.item1!,
imageWidth: _widthHeight?.item1,
imageHeight: _widthHeight?.item2,
maxWidth: MediaQuery.of(context).size.width,
maxHeight:
MediaQuery.of(context).size.height);
maxWidth: _screenSize.width,
maxHeight: _screenSize.height);
});
},
);

Loading…
Cancel
Save