Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements on the presets (BFF-1299 + BFF-1389) #401

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

MaikelStuivenberg
Copy link
Contributor

Description

Improvements on the presets + made fontsize smaller on small screen

@github-actions github-actions bot added the bug Something isn't working label Nov 7, 2023
@@ -167,32 +170,29 @@ class _NumericKeyboardState extends State<NumericKeyboard> {

var fontSize = 18.0;
if (size.height < 600 && widget.presets.isNotEmpty) {
fontSize = 12;
fontSize = fontSize * 0.9;
}
final onButtonTap = onTap ?? () => widget.onKeyboardTap(value);
final valueWidget = child ??
Text(
value,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bodyMedium is pointless at this point as we use a fontSize, but it's still fine

@MaikelStuivenberg MaikelStuivenberg merged commit e837728 into develop Nov 8, 2023
1 check passed
@MaikelStuivenberg MaikelStuivenberg deleted the bug/BFF-1299-screen-doesnt-fit branch November 8, 2023 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants