|
|
@ -51,6 +51,7 @@ class DefaultStyles { |
|
|
|
this.paragraph, |
|
|
|
this.paragraph, |
|
|
|
this.bold, |
|
|
|
this.bold, |
|
|
|
this.italic, |
|
|
|
this.italic, |
|
|
|
|
|
|
|
this.small, |
|
|
|
this.underline, |
|
|
|
this.underline, |
|
|
|
this.strikeThrough, |
|
|
|
this.strikeThrough, |
|
|
|
this.link, |
|
|
|
this.link, |
|
|
@ -73,6 +74,7 @@ class DefaultStyles { |
|
|
|
final DefaultTextBlockStyle? paragraph; |
|
|
|
final DefaultTextBlockStyle? paragraph; |
|
|
|
final TextStyle? bold; |
|
|
|
final TextStyle? bold; |
|
|
|
final TextStyle? italic; |
|
|
|
final TextStyle? italic; |
|
|
|
|
|
|
|
final TextStyle? small; |
|
|
|
final TextStyle? underline; |
|
|
|
final TextStyle? underline; |
|
|
|
final TextStyle? strikeThrough; |
|
|
|
final TextStyle? strikeThrough; |
|
|
|
final TextStyle? sizeSmall; // 'small' |
|
|
|
final TextStyle? sizeSmall; // 'small' |
|
|
@ -147,6 +149,7 @@ class DefaultStyles { |
|
|
|
baseStyle, const Tuple2(0, 0), const Tuple2(0, 0), null), |
|
|
|
baseStyle, const Tuple2(0, 0), const Tuple2(0, 0), null), |
|
|
|
bold: const TextStyle(fontWeight: FontWeight.bold), |
|
|
|
bold: const TextStyle(fontWeight: FontWeight.bold), |
|
|
|
italic: const TextStyle(fontStyle: FontStyle.italic), |
|
|
|
italic: const TextStyle(fontStyle: FontStyle.italic), |
|
|
|
|
|
|
|
small: const TextStyle(fontSize: 12), |
|
|
|
underline: const TextStyle(decoration: TextDecoration.underline), |
|
|
|
underline: const TextStyle(decoration: TextDecoration.underline), |
|
|
|
strikeThrough: const TextStyle(decoration: TextDecoration.lineThrough), |
|
|
|
strikeThrough: const TextStyle(decoration: TextDecoration.lineThrough), |
|
|
|
link: TextStyle( |
|
|
|
link: TextStyle( |
|
|
@ -205,6 +208,7 @@ class DefaultStyles { |
|
|
|
paragraph: other.paragraph ?? paragraph, |
|
|
|
paragraph: other.paragraph ?? paragraph, |
|
|
|
bold: other.bold ?? bold, |
|
|
|
bold: other.bold ?? bold, |
|
|
|
italic: other.italic ?? italic, |
|
|
|
italic: other.italic ?? italic, |
|
|
|
|
|
|
|
small: other.small ?? small, |
|
|
|
underline: other.underline ?? underline, |
|
|
|
underline: other.underline ?? underline, |
|
|
|
strikeThrough: other.strikeThrough ?? strikeThrough, |
|
|
|
strikeThrough: other.strikeThrough ?? strikeThrough, |
|
|
|
link: other.link ?? link, |
|
|
|
link: other.link ?? link, |
|
|
|