Remove the print statements

pull/1428/head
Ahmed Hnewa 2 years ago
parent 3a695d1524
commit 3365747177
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 10
      flutter_quill_extensions/lib/embeds/builders.dart
  2. 2
      lib/src/models/documents/attribute.dart

@ -56,8 +56,9 @@ class ImageEmbedBuilder extends EmbedBuilder {
OptionalSize? imageSize;
final style = node.style.attributes['style'];
// TODO: Please use the one from [Attribute]
// TODO: Please use the one from [Attribute.margin]
const marginKey = 'margin';
// TODO: Please use the one from [Attribute.alignment]
const alignmentKey = 'alignment';
if (style != null) {
final attrs = base.isMobile()
@ -145,7 +146,6 @@ class ImageEmbedBuilder extends EmbedBuilder {
final screenSize = MediaQuery.sizeOf(context);
return ImageResizer(
onImageResize: (w, h) {
print('Width = $w, Height = $h');
final res = getEmbedNode(
controller,
controller.selection.start,
@ -206,12 +206,6 @@ class ImageEmbedBuilder extends EmbedBuilder {
1,
StyleAttribute(attr),
);
print(
jsonEncode(
controller.document.toDelta().toJson(),
),
);
},
imageWidth: imageSize?.width,
imageHeight: imageSize?.height,

@ -102,6 +102,8 @@ class Attribute<T> {
static final ScriptAttribute script = ScriptAttribute(null);
// TODO: You might want to mark those as key (mobileWidthKey)
// because it was not very clear to a developer that is new to this project
static const String mobileWidth = 'mobileWidth';
static const String mobileHeight = 'mobileHeight';

Loading…
Cancel
Save