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);
}
class FontAttribute extends Attribute<String> {
FontAttribute(String val) : super('font', AttributeScope.INLINE, val);
class FontAttribute extends Attribute<double> {
FontAttribute(double val) : super('font', AttributeScope.INLINE, val);
}
class SizeAttribute extends Attribute<String> {

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

Loading…
Cancel
Save