Skip to content

Commit 0eb1410

Browse files
committed
katex [nfc]: Rename _KatexSpan field to "node"
This makes it more uniform with our other content widgets.
1 parent 6bb726a commit 0eb1410

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/widgets/content.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -874,22 +874,22 @@ class _KatexNodeList extends StatelessWidget {
874874
}
875875

876876
class _KatexSpan extends StatelessWidget {
877-
const _KatexSpan(this.span);
877+
const _KatexSpan(this.node);
878878

879-
final KatexNode span;
879+
final KatexNode node;
880880

881881
@override
882882
Widget build(BuildContext context) {
883883
final em = DefaultTextStyle.of(context).style.fontSize!;
884884

885885
Widget widget = const SizedBox.shrink();
886-
if (span.text != null) {
887-
widget = Text(span.text!);
888-
} else if (span.nodes != null && span.nodes!.isNotEmpty) {
889-
widget = _KatexNodeList(nodes: span.nodes!);
886+
if (node.text != null) {
887+
widget = Text(node.text!);
888+
} else if (node.nodes != null && node.nodes!.isNotEmpty) {
889+
widget = _KatexNodeList(nodes: node.nodes!);
890890
}
891891

892-
final styles = span.styles;
892+
final styles = node.styles;
893893

894894
final fontFamily = styles.fontFamily;
895895
final fontSize = switch (styles.fontSizeEm) {

0 commit comments

Comments
 (0)