diff --git a/lib/src/widgets/quill/text_line.dart b/lib/src/widgets/quill/text_line.dart index 25037fcf..c3dbb146 100644 --- a/lib/src/widgets/quill/text_line.dart +++ b/lib/src/widgets/quill/text_line.dart @@ -198,7 +198,7 @@ class _TextLineState extends State { child = Embed(CustomBlockEmbed.fromJsonString(child.value.data)) ..applyStyle(child.style); } - + if (child.value.type == BlockEmbed.formulaType) { lineStyle = lineStyle.merge(_getInlineTextStyle( child.style, @@ -387,8 +387,8 @@ class _TextLineState extends State { final isLink = nodeStyle.containsKey(Attribute.link.key) && nodeStyle.attributes[Attribute.link.key]!.value != null; - final style = _getInlineTextStyle( - nodeStyle, defaultStyles, lineStyle, isLink); + final style = + _getInlineTextStyle(nodeStyle, defaultStyles, lineStyle, isLink); if (widget.controller.configurations.requireScriptFontFeatures == false && textNode.value.isNotEmpty) { @@ -410,11 +410,8 @@ class _TextLineState extends State { ); } - TextStyle _getInlineTextStyle( - Style nodeStyle, - DefaultStyles defaultStyles, - Style lineStyle, - bool isLink) { + TextStyle _getInlineTextStyle(Style nodeStyle, DefaultStyles defaultStyles, + Style lineStyle, bool isLink) { var res = const TextStyle(); // This is inline text style final color = nodeStyle.attributes[Attribute.color.key];