Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
singerdmx committed Jan 31, 2022
1 parent 0d64647 commit 122b3c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/widgets/embeds/default_embed_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
},
);
Expand Down

0 comments on commit 122b3c0

Please sign in to comment.