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>( showCupertinoModalPopup<void>(
context: context, context: context,
builder: (context) { builder: (context) {
final _screenSize = MediaQuery.of(context).size;
return ImageResizer( return ImageResizer(
imageNode: res.item2!, imageNode: res.item2!,
offset: res.item1!, offset: res.item1!,
imageWidth: _widthHeight?.item1, imageWidth: _widthHeight?.item1,
imageHeight: _widthHeight?.item2, imageHeight: _widthHeight?.item2,
maxWidth: MediaQuery.of(context).size.width, maxWidth: _screenSize.width,
maxHeight: maxHeight: _screenSize.height);
MediaQuery.of(context).size.height);
}); });
}, },
); );

Loading…
Cancel
Save