diff --git a/lib/widgets/text_line.dart b/lib/widgets/text_line.dart index 562e9d38..6971daf3 100644 --- a/lib/widgets/text_line.dart +++ b/lib/widgets/text_line.dart @@ -96,15 +96,15 @@ class TextLine extends StatelessWidget { Style style = textNode.style; TextStyle res = TextStyle(); - Map m = { - Attribute.bold: defaultStyles.bold, - Attribute.italic: defaultStyles.italic, - Attribute.link: defaultStyles.link, - Attribute.underline: defaultStyles.underline, - Attribute.strikeThrough: defaultStyles.strikeThrough, + Map m = { + Attribute.bold.key: defaultStyles.bold, + Attribute.italic.key: defaultStyles.italic, + Attribute.link.key: defaultStyles.link, + Attribute.underline.key: defaultStyles.underline, + Attribute.strikeThrough.key: defaultStyles.strikeThrough, }; m.forEach((k, s) { - if (style.values.any((v) => v == k)) { + if (style.values.any((v) => v.key == k)) { res = _merge(res, s); } });