Skip to content

Commit

Permalink
Fix baseline in lists (flutter#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
神楽坂花火 authored Jun 13, 2020
1 parent e7178d5 commit 80b982a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flutter_markdown/lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ class MarkdownBuilder implements md.NodeVisitor {
} else {
bullet = _buildBullet(_listIndents.last);
}
// See #147 and #169
child = Row(
crossAxisAlignment: CrossAxisAlignment.start, // See #147
textBaseline: TextBaseline.alphabetic,
crossAxisAlignment: CrossAxisAlignment.baseline,
children: <Widget>[
SizedBox(
width: styleSheet.listIndent,
Expand Down

0 comments on commit 80b982a

Please sign in to comment.