|
|
@ -54,6 +54,7 @@ class DefaultStyles { |
|
|
|
final TextStyle sizeLarge; // 'large' |
|
|
|
final TextStyle sizeLarge; // 'large' |
|
|
|
final TextStyle sizeHuge; // 'huge' |
|
|
|
final TextStyle sizeHuge; // 'huge' |
|
|
|
final TextStyle link; |
|
|
|
final TextStyle link; |
|
|
|
|
|
|
|
final DefaultTextBlockStyle placeHolder; |
|
|
|
final DefaultTextBlockStyle lists; |
|
|
|
final DefaultTextBlockStyle lists; |
|
|
|
final DefaultTextBlockStyle quote; |
|
|
|
final DefaultTextBlockStyle quote; |
|
|
|
final DefaultTextBlockStyle code; |
|
|
|
final DefaultTextBlockStyle code; |
|
|
@ -70,6 +71,7 @@ class DefaultStyles { |
|
|
|
this.underline, |
|
|
|
this.underline, |
|
|
|
this.strikeThrough, |
|
|
|
this.strikeThrough, |
|
|
|
this.link, |
|
|
|
this.link, |
|
|
|
|
|
|
|
this.placeHolder, |
|
|
|
this.lists, |
|
|
|
this.lists, |
|
|
|
this.quote, |
|
|
|
this.quote, |
|
|
|
this.code, |
|
|
|
this.code, |
|
|
@ -144,6 +146,15 @@ class DefaultStyles { |
|
|
|
color: themeData.accentColor, |
|
|
|
color: themeData.accentColor, |
|
|
|
decoration: TextDecoration.underline, |
|
|
|
decoration: TextDecoration.underline, |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
placeHolder: DefaultTextBlockStyle( |
|
|
|
|
|
|
|
defaultTextStyle.style.copyWith( |
|
|
|
|
|
|
|
fontSize: 20.0, |
|
|
|
|
|
|
|
height: 1.5, |
|
|
|
|
|
|
|
color: Colors.grey.withOpacity(0.6), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Tuple2(0.0, 0.0), |
|
|
|
|
|
|
|
Tuple2(0.0, 0.0), |
|
|
|
|
|
|
|
null), |
|
|
|
lists: DefaultTextBlockStyle( |
|
|
|
lists: DefaultTextBlockStyle( |
|
|
|
baseStyle, baseSpacing, Tuple2(0.0, 6.0), null), |
|
|
|
baseStyle, baseSpacing, Tuple2(0.0, 6.0), null), |
|
|
|
quote: DefaultTextBlockStyle( |
|
|
|
quote: DefaultTextBlockStyle( |
|
|
@ -188,6 +199,7 @@ class DefaultStyles { |
|
|
|
underline: other.underline ?? this.underline, |
|
|
|
underline: other.underline ?? this.underline, |
|
|
|
strikeThrough: other.strikeThrough ?? this.strikeThrough, |
|
|
|
strikeThrough: other.strikeThrough ?? this.strikeThrough, |
|
|
|
link: other.link ?? this.link, |
|
|
|
link: other.link ?? this.link, |
|
|
|
|
|
|
|
placeHolder: other.placeHolder ?? this.placeHolder, |
|
|
|
lists: other.lists ?? this.lists, |
|
|
|
lists: other.lists ?? this.lists, |
|
|
|
quote: other.quote ?? this.quote, |
|
|
|
quote: other.quote ?? this.quote, |
|
|
|
code: other.code ?? this.code, |
|
|
|
code: other.code ?? this.code, |
|
|
|