From 6dde2d0bb7d3f1c6f574c91e149619837f8b05e6 Mon Sep 17 00:00:00 2001 From: ritheshSalyan Date: Thu, 18 Feb 2021 17:12:10 +0530 Subject: [PATCH] change Fontsize to double --- lib/models/documents/attribute.dart | 4 ++-- lib/widgets/text_selection.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/models/documents/attribute.dart b/lib/models/documents/attribute.dart index d7865e7d..2e3dd05d 100644 --- a/lib/models/documents/attribute.dart +++ b/lib/models/documents/attribute.dart @@ -201,8 +201,8 @@ class StrikeThroughAttribute extends Attribute { StrikeThroughAttribute() : super('strike', AttributeScope.INLINE, true); } -class FontAttribute extends Attribute { - FontAttribute(String val) : super('font', AttributeScope.INLINE, val); +class FontAttribute extends Attribute { + FontAttribute(double val) : super('font', AttributeScope.INLINE, val); } class SizeAttribute extends Attribute { diff --git a/lib/widgets/text_selection.dart b/lib/widgets/text_selection.dart index e74318ac..93366872 100644 --- a/lib/widgets/text_selection.dart +++ b/lib/widgets/text_selection.dart @@ -202,11 +202,11 @@ class EditorTextSelectionOverlay { context, editingRegion, baseLineHeight, - midpoint, + Offset(0, 0),// midpoint, endpoints, selectionDelegate, clipboardStatus, - Offset(0, 0)), + ), ), ); }