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