File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ class Paragraph extends StatelessWidget {
100
100
101
101
final ParagraphNode node;
102
102
103
- static TextStyle getTextStyle ( BuildContext context) => const TextStyle (
103
+ static const textStyle = TextStyle (
104
104
fontSize: kBaseFontSize,
105
105
height: (17 / kBaseFontSize),
106
106
);
@@ -113,7 +113,7 @@ class Paragraph extends StatelessWidget {
113
113
114
114
final text = _buildBlockInlineContainer (
115
115
node: node,
116
- style: getTextStyle (context) ,
116
+ style: textStyle ,
117
117
);
118
118
119
119
// If the paragraph didn't actually have a `p` element in the HTML,
@@ -646,7 +646,7 @@ class UserMention extends StatelessWidget {
646
646
// One hopes an @-mention can't contain an embedded link.
647
647
// (The parser on creating a UserMentionNode has a TODO to check that.)
648
648
linkRecognizers: null ,
649
- style: Paragraph .getTextStyle (context) ,
649
+ style: Paragraph .textStyle ,
650
650
nodes: node.nodes));
651
651
}
652
652
You can’t perform that action at this time.
0 commit comments