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.
This commit is contained in:
Vishesh Handa
2020-08-15 12:41:14 +02:00
parent 850e9c7826
commit 87eb0c5419

View File

@ -9,21 +9,24 @@ class MarkdownToolBar extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
var textTheme = Theme.of(context).textTheme;
var style = textTheme.bodyText2.copyWith(fontWeight: FontWeight.bold);
return Container( return Container(
child: Row( child: Row(
children: [ children: [
IconButton( IconButton(
icon: const Text('H1'), icon: Text('H1', style: style),
padding: const EdgeInsets.all(0.0), padding: const EdgeInsets.all(0.0),
onPressed: () => _modifyCurrentLine('# '), onPressed: () => _modifyCurrentLine('# '),
), ),
IconButton( IconButton(
icon: const Text('I'), icon: Text('I', style: style),
padding: const EdgeInsets.all(0.0), padding: const EdgeInsets.all(0.0),
onPressed: () => _modifyCurrentWord('*'), onPressed: () => _modifyCurrentWord('*'),
), ),
IconButton( IconButton(
icon: const Text('B'), icon: Text('B', style: style),
padding: const EdgeInsets.all(0.0), padding: const EdgeInsets.all(0.0),
onPressed: () => _modifyCurrentWord('**'), onPressed: () => _modifyCurrentWord('**'),
), ),