Skip to content

Commit 8cf9c37

Browse files
committed
content [nfc]: Dedupe a pair of ContentTheme.of lookups
1 parent cb3fa1d commit 8cf9c37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/widgets/content.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,11 @@ class MathBlock extends StatelessWidget {
830830

831831
@override
832832
Widget build(BuildContext context) {
833+
final contentTheme = ContentTheme.of(context);
833834
return _CodeBlockContainer(
834-
borderColor: ContentTheme.of(context).colorMathBlockBorder,
835+
borderColor: contentTheme.colorMathBlockBorder,
835836
child: Text.rich(TextSpan(
836-
style: ContentTheme.of(context).codeBlockTextStyles.plain,
837+
style: contentTheme.codeBlockTextStyles.plain,
837838
children: [TextSpan(text: node.texSource)])));
838839
}
839840
}

0 commit comments

Comments
 (0)