@@ -59,24 +59,24 @@ class DefaultTextBlockStyle {
59
59
class InlineCodeStyle {
60
60
InlineCodeStyle ({
61
61
required this .style,
62
- this .heading1 ,
63
- this .heading2 ,
64
- this .heading3 ,
62
+ this .header1 ,
63
+ this .header2 ,
64
+ this .header3 ,
65
65
this .backgroundColor,
66
66
this .radius,
67
67
});
68
68
69
69
/// Base text style for an inline code.
70
70
final TextStyle style;
71
71
72
- /// Style override for inline code in headings level 1.
73
- final TextStyle ? heading1 ;
72
+ /// Style override for inline code in header level 1.
73
+ final TextStyle ? header1 ;
74
74
75
75
/// Style override for inline code in headings level 2.
76
- final TextStyle ? heading2 ;
76
+ final TextStyle ? header2 ;
77
77
78
78
/// Style override for inline code in headings level 3.
79
- final TextStyle ? heading3 ;
79
+ final TextStyle ? header3 ;
80
80
81
81
/// Background color for inline code.
82
82
final Color ? backgroundColor;
@@ -88,13 +88,13 @@ class InlineCodeStyle {
88
88
/// [lineStyle] .
89
89
TextStyle styleFor (Style lineStyle) {
90
90
if (lineStyle.containsKey (Attribute .h1.key)) {
91
- return heading1 ?? style;
91
+ return header1 ?? style;
92
92
}
93
93
if (lineStyle.containsKey (Attribute .h2.key)) {
94
- return heading2 ?? style;
94
+ return header2 ?? style;
95
95
}
96
96
if (lineStyle.containsKey (Attribute .h3.key)) {
97
- return heading3 ?? style;
97
+ return header3 ?? style;
98
98
}
99
99
return style;
100
100
}
@@ -108,16 +108,16 @@ class InlineCodeStyle {
108
108
return false ;
109
109
}
110
110
return other.style == style &&
111
- other.heading1 == heading1 &&
112
- other.heading2 == heading2 &&
113
- other.heading3 == heading3 &&
111
+ other.header1 == header1 &&
112
+ other.header2 == header2 &&
113
+ other.header3 == header3 &&
114
114
other.backgroundColor == backgroundColor &&
115
115
other.radius == radius;
116
116
}
117
117
118
118
@override
119
119
int get hashCode =>
120
- Object .hash (style, heading1, heading2, heading3 , backgroundColor, radius);
120
+ Object .hash (style, header1, header2, header3 , backgroundColor, radius);
121
121
}
122
122
123
123
class DefaultListBlockStyle extends DefaultTextBlockStyle {
@@ -255,12 +255,12 @@ class DefaultStyles {
255
255
backgroundColor: Colors .grey.shade100,
256
256
radius: const Radius .circular (3 ),
257
257
style: inlineCodeStyle,
258
- heading1 : inlineCodeStyle.copyWith (
258
+ header1 : inlineCodeStyle.copyWith (
259
259
fontSize: 32 ,
260
260
fontWeight: FontWeight .w300,
261
261
),
262
- heading2 : inlineCodeStyle.copyWith (fontSize: 22 ),
263
- heading3 : inlineCodeStyle.copyWith (
262
+ header2 : inlineCodeStyle.copyWith (fontSize: 22 ),
263
+ header3 : inlineCodeStyle.copyWith (
264
264
fontSize: 18 ,
265
265
fontWeight: FontWeight .w500,
266
266
),
0 commit comments