From 33657471779d8f8d72bc546fe70875a501f7a279 Mon Sep 17 00:00:00 2001 From: Ahmed Hnewa <73608287+freshtechtips@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:11:01 +0300 Subject: [PATCH] Remove the print statements --- flutter_quill_extensions/lib/embeds/builders.dart | 10 ++-------- lib/src/models/documents/attribute.dart | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/flutter_quill_extensions/lib/embeds/builders.dart b/flutter_quill_extensions/lib/embeds/builders.dart index f82fd1b4..fa5e53a6 100644 --- a/flutter_quill_extensions/lib/embeds/builders.dart +++ b/flutter_quill_extensions/lib/embeds/builders.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, diff --git a/lib/src/models/documents/attribute.dart b/lib/src/models/documents/attribute.dart index bc70b8d8..d0dd2cfc 100644 --- a/lib/src/models/documents/attribute.dart +++ b/lib/src/models/documents/attribute.dart @@ -102,6 +102,8 @@ class Attribute { 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';