change Fontsize to double

pull/31/head
ritheshSalyan 4 years ago
parent 556dd2085a
commit 6dde2d0bb7
  1. 4
      lib/models/documents/attribute.dart
  2. 4
      lib/widgets/text_selection.dart

@ -201,8 +201,8 @@ class StrikeThroughAttribute extends Attribute<bool> {
StrikeThroughAttribute() : super('strike', AttributeScope.INLINE, true); StrikeThroughAttribute() : super('strike', AttributeScope.INLINE, true);
} }
class FontAttribute extends Attribute<String> { class FontAttribute extends Attribute<double> {
FontAttribute(String val) : super('font', AttributeScope.INLINE, val); FontAttribute(double val) : super('font', AttributeScope.INLINE, val);
} }
class SizeAttribute extends Attribute<String> { class SizeAttribute extends Attribute<String> {

@ -202,11 +202,11 @@ class EditorTextSelectionOverlay {
context, context,
editingRegion, editingRegion,
baseLineHeight, baseLineHeight,
midpoint, Offset(0, 0),// midpoint,
endpoints, endpoints,
selectionDelegate, selectionDelegate,
clipboardStatus, clipboardStatus,
Offset(0, 0)), ),
), ),
); );
} }

Loading…
Cancel
Save