mirror of
https://github.com/tommyxchow/frosty.git
synced 2025-09-18 19:13:30 +08:00
Update markdown style sheet
This commit is contained in:
@ -34,32 +34,34 @@ class _ReleaseNotesState extends State<ReleaseNotes> {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('Release notes'),
|
title: const Text('Release notes'),
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Markdown(
|
||||||
children: [
|
data: releaseNotes,
|
||||||
Expanded(
|
styleSheet: MarkdownStyleSheet(
|
||||||
child: Markdown(
|
h2: const TextStyle(fontSize: 20),
|
||||||
data: releaseNotes,
|
h3: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
|
||||||
styleSheet: MarkdownStyleSheet(
|
h3Padding: const EdgeInsets.only(top: 16),
|
||||||
h2: const TextStyle(fontSize: 20),
|
h4: const TextStyle(fontSize: 14),
|
||||||
h3: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
|
h4Padding: const EdgeInsets.only(top: 16),
|
||||||
h3Padding: const EdgeInsets.only(top: 16),
|
p: const TextStyle(fontSize: 14),
|
||||||
h4: const TextStyle(fontSize: 14),
|
horizontalRuleDecoration: const BoxDecoration(
|
||||||
h4Padding: const EdgeInsets.only(top: 16),
|
border: Border(
|
||||||
p: const TextStyle(fontSize: 14),
|
top: BorderSide(
|
||||||
|
color: Colors.transparent,
|
||||||
|
width: 32,
|
||||||
),
|
),
|
||||||
onTapLink: (text, href, title) {
|
|
||||||
if (href != null) {
|
|
||||||
launchUrlString(
|
|
||||||
href,
|
|
||||||
mode: context.read<SettingsStore>().launchUrlExternal
|
|
||||||
? LaunchMode.externalApplication
|
|
||||||
: LaunchMode.inAppBrowserView,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
|
onTapLink: (text, href, title) {
|
||||||
|
if (href != null) {
|
||||||
|
launchUrlString(
|
||||||
|
href,
|
||||||
|
mode: context.read<SettingsStore>().launchUrlExternal
|
||||||
|
? LaunchMode.externalApplication
|
||||||
|
: LaunchMode.inAppBrowserView,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user