From 87eb0c5419c90cd3d3af03056092c79c38678c7c Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 15 Aug 2020 12:41:14 +0200 Subject: [PATCH] MarkdownToolbar: Make the header icon bolder Ideally, we should just use the FontAwesome icons for each of these instead of relying on the normal font. --- lib/widgets/markdown_toolbar.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/widgets/markdown_toolbar.dart b/lib/widgets/markdown_toolbar.dart index 83e0aab1..5e6b8294 100644 --- a/lib/widgets/markdown_toolbar.dart +++ b/lib/widgets/markdown_toolbar.dart @@ -9,21 +9,24 @@ class MarkdownToolBar extends StatelessWidget { @override Widget build(BuildContext context) { + var textTheme = Theme.of(context).textTheme; + var style = textTheme.bodyText2.copyWith(fontWeight: FontWeight.bold); + return Container( child: Row( children: [ IconButton( - icon: const Text('H1'), + icon: Text('H1', style: style), padding: const EdgeInsets.all(0.0), onPressed: () => _modifyCurrentLine('# '), ), IconButton( - icon: const Text('I'), + icon: Text('I', style: style), padding: const EdgeInsets.all(0.0), onPressed: () => _modifyCurrentWord('*'), ), IconButton( - icon: const Text('B'), + icon: Text('B', style: style), padding: const EdgeInsets.all(0.0), onPressed: () => _modifyCurrentWord('**'), ),