Skip to content

Commit 22f90a9

Browse files
committed
fix link colour and nicer blockquotes
1 parent cb5d767 commit 22f90a9

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.0.3] - 16th Se 2021:
2+
- Fix `a` tags not properly obaying the `linkStyle`
3+
- Slightly increase the padding to the left of `blockquote` tags
4+
15
## [1.0.2] - 27th Aug 2021
26
- Fix list overflow
37

lib/text_parser.dart

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,10 @@ class TextParser extends StatelessWidget {
418418
);
419419
}
420420
}
421+
nextContext.textStyle =
422+
parseContext.textStyle.merge(parseContext.linkStyle);
421423
return LinkTextSpan(
422-
style: parseContext.textStyle.merge(parseContext.linkStyle),
424+
style: nextContext.textStyle,
423425
url: url ?? '',
424426
onLinkTap: onLinkTap,
425427
children: <InlineSpan>[
@@ -642,7 +644,12 @@ class TextParser extends StatelessWidget {
642644
color: defaultTextStyle?.color ?? Colors.black, width: 3),
643645
),
644646
),
645-
padding: EdgeInsets.all(2.0),
647+
padding: EdgeInsets.only(
648+
left: 6.0,
649+
right: 2.0,
650+
top: 2.0,
651+
bottom: 2.0,
652+
),
646653
child: _parseChildNodes(context, nextContext, node.nodes),
647654
);
648655
case 'pre':

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_matrix_html
22
description: A Flutter widget for rendering static matrix html tags as Flutter widgets. (Will render over 70 different html tags!)
3-
version: 1.0.2
3+
version: 1.0.3
44
homepage: https://github.com/Sorunome/flutter_matrix_html
55

66
environment:

0 commit comments

Comments
 (0)