fix: markdown style

This commit is contained in:
Rongjian Zhang 2019-11-30 22:44:55 +08:00
parent 9bd320d01b
commit 9cac22e616
3 changed files with 10 additions and 11 deletions

View File

@ -1,10 +0,0 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f
channel: stable
project_type: app

View File

@ -113,10 +113,19 @@ class MarkdownView extends StatelessWidget {
fontSize: 16 * 0.85, color: theme.palette.tertiaryText),
em: _basicStyle.copyWith(fontStyle: FontStyle.italic),
strong: _basicStyle.copyWith(fontWeight: FontWeight.w600),
del: const TextStyle(decoration: TextDecoration.lineThrough),
blockquote: _basicStyle.copyWith(color: theme.palette.tertiaryText),
img: _basicStyle,
checkbox: _basicStyle,
blockSpacing: 16,
listIndent: 32,
listBullet: _basicStyle,
tableHead: _basicStyle,
tableBody: _basicStyle,
tableHeadAlign: TextAlign.center,
tableBorder: TableBorder.all(color: Colors.grey.shade300, width: 0),
tableColumnWidth: const FlexColumnWidth(),
tableCellsPadding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
blockquotePadding: EdgeInsets.symmetric(horizontal: 16),
blockquoteDecoration: BoxDecoration(
border: Border(left: BorderSide(color: Color(0xffdfe2e5), width: 4)),

View File

@ -25,7 +25,7 @@ dependencies:
intl: ^0.16.0
url_launcher: ^5.0.2
uni_links: ^0.1.4
flutter_markdown: ^0.3.0
flutter_markdown: ^0.3.2
shared_preferences: ^0.5.0
share: ^0.6.0
flutter_svg: ^0.13.0