|
|
|
@ -144,6 +144,9 @@ class DefaultStyles { |
|
|
|
|
this.h1, |
|
|
|
|
this.h2, |
|
|
|
|
this.h3, |
|
|
|
|
this.h4, |
|
|
|
|
this.h5, |
|
|
|
|
this.h6, |
|
|
|
|
this.paragraph, |
|
|
|
|
this.bold, |
|
|
|
|
this.subscript, |
|
|
|
@ -170,6 +173,9 @@ class DefaultStyles { |
|
|
|
|
final DefaultTextBlockStyle? h1; |
|
|
|
|
final DefaultTextBlockStyle? h2; |
|
|
|
|
final DefaultTextBlockStyle? h3; |
|
|
|
|
final DefaultTextBlockStyle? h4; |
|
|
|
|
final DefaultTextBlockStyle? h5; |
|
|
|
|
final DefaultTextBlockStyle? h6; |
|
|
|
|
final DefaultTextBlockStyle? paragraph; |
|
|
|
|
final TextStyle? bold; |
|
|
|
|
final TextStyle? subscript; |
|
|
|
@ -220,9 +226,10 @@ class DefaultStyles { |
|
|
|
|
h1: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 34, |
|
|
|
|
color: defaultTextStyle.style.color!.withOpacity(0.70), |
|
|
|
|
height: 1.15, |
|
|
|
|
fontWeight: FontWeight.w300, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -1, |
|
|
|
|
height: 1, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(16, 0), |
|
|
|
@ -230,37 +237,84 @@ class DefaultStyles { |
|
|
|
|
null), |
|
|
|
|
h2: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 24, |
|
|
|
|
color: defaultTextStyle.style.color!.withOpacity(0.70), |
|
|
|
|
height: 1.15, |
|
|
|
|
fontWeight: FontWeight.normal, |
|
|
|
|
fontSize: 30, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -0.8, |
|
|
|
|
height: 1.067, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(8, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null), |
|
|
|
|
h3: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 24, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -0.5, |
|
|
|
|
height: 1.083, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(8, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null, |
|
|
|
|
), |
|
|
|
|
h4: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 20, |
|
|
|
|
color: defaultTextStyle.style.color!.withOpacity(0.70), |
|
|
|
|
height: 1.25, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -0.4, |
|
|
|
|
height: 1.1, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(8, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null, |
|
|
|
|
), |
|
|
|
|
h5: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 18, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -0.2, |
|
|
|
|
height: 1.11, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(8, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null, |
|
|
|
|
), |
|
|
|
|
h6: DefaultTextBlockStyle( |
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
fontSize: 16, |
|
|
|
|
color: defaultTextStyle.style.color, |
|
|
|
|
letterSpacing: -0.1, |
|
|
|
|
height: 1.125, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
decoration: TextDecoration.none, |
|
|
|
|
), |
|
|
|
|
const VerticalSpacing(8, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null, |
|
|
|
|
), |
|
|
|
|
paragraph: DefaultTextBlockStyle(baseStyle, const VerticalSpacing(0, 0), |
|
|
|
|
const VerticalSpacing(0, 0), null), |
|
|
|
|
paragraph: DefaultTextBlockStyle( |
|
|
|
|
baseStyle, |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
const VerticalSpacing(0, 0), |
|
|
|
|
null, |
|
|
|
|
), |
|
|
|
|
bold: const TextStyle(fontWeight: FontWeight.bold), |
|
|
|
|
subscript: const TextStyle( |
|
|
|
|
fontFeatures: [ |
|
|
|
|
FontFeature.liningFigures(), |
|
|
|
|
FontFeature.subscripts(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
superscript: const TextStyle( |
|
|
|
|
fontFeatures: [ |
|
|
|
|
FontFeature.liningFigures(), |
|
|
|
|
FontFeature.superscripts(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -274,9 +328,12 @@ class DefaultStyles { |
|
|
|
|
style: inlineCodeStyle, |
|
|
|
|
header1: inlineCodeStyle.copyWith( |
|
|
|
|
fontSize: 32, |
|
|
|
|
fontWeight: FontWeight.w300, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
), |
|
|
|
|
header2: inlineCodeStyle.copyWith( |
|
|
|
|
fontSize: 22, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
), |
|
|
|
|
header2: inlineCodeStyle.copyWith(fontSize: 22), |
|
|
|
|
header3: inlineCodeStyle.copyWith( |
|
|
|
|
fontSize: 18, |
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|