From 5731e13ac9accfa91d2cb2bb4f7cafd8d2b9bd8b Mon Sep 17 00:00:00 2001 From: Markus Wageringel Date: Mon, 15 Aug 2022 14:30:11 +0200 Subject: [PATCH] revert font family for keypad buttons NotoSansMath appears to be better vertically centered on the keypad than NotoSans. This is especially noticeable when the font size is increased in the system settings. --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 7830b47..9431ed2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -286,6 +286,7 @@ Iterable interleave(Iterable it, A separator) { const listPadding = EdgeInsets.all(8.0); const _biggerFont = TextStyle(fontSize: 18.0); final _biggerFontMath = _biggerFont.copyWith(fontFamily: 'NotoSansMath', fontFamilyFallback: ['NotoSans']); +final _biggerFontMathButton = _biggerFontMath.copyWith(fontSize: 20.0); // NotoSansMath appears to be better vertically centered than NotoSans class KeyboardButton extends StatelessWidget { static const _keyIcons = { @@ -303,7 +304,7 @@ class KeyboardButton extends StatelessWidget { height: 44, width: 66, child: OutlinedButton( - child: _keyIcons.containsKey(label) ? Icon(_keyIcons[label], size: 26) : Text(label, style: const TextStyle(fontSize: 20)), + child: _keyIcons.containsKey(label) ? Icon(_keyIcons[label], size: 26) : Text(label, style: _biggerFontMathButton), onPressed: () => game.keyPressed(label), ), ),