Skip to content

Commit

Permalink
fix: #116
Browse files Browse the repository at this point in the history
  • Loading branch information
asjqkkkk committed Jun 24, 2023
1 parent 96efd1a commit aecd90c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/widget/blocks/container/blockquote.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ class BlockquoteNode extends ElementNode {
InlineSpan build() {
return WidgetSpan(
child: Container(
width: double.infinity,
decoration: BoxDecoration(
border: Border(
left: BorderSide(color: config.sideColor, width: config.sideWith),
)),
padding: config.padding,
margin: config.margin,
child: ProxyRichText(childrenSpan),
));
}
Expand All @@ -36,12 +38,15 @@ class BlockquoteConfig implements ContainerConfig {
final Color textColor;
final double sideWith;
final EdgeInsets padding;

const BlockquoteConfig(
{this.sideColor = const Color(0xffd0d7de),
this.textColor = const Color(0xff57606a),
this.sideWith = 4.0,
this.padding = const EdgeInsets.fromLTRB(16, 2, 0, 2)});
final EdgeInsets margin;

const BlockquoteConfig({
this.sideColor = const Color(0xffd0d7de),
this.textColor = const Color(0xff57606a),
this.sideWith = 4.0,
this.padding = const EdgeInsets.fromLTRB(16, 2, 0, 2),
this.margin = const EdgeInsets.fromLTRB(0, 8, 0, 8),
});

@nonVirtual
@override
Expand Down

0 comments on commit aecd90c

Please sign in to comment.