From 2f7328c954a8dfe7d79bb43bca3b372bd44699be Mon Sep 17 00:00:00 2001 From: PartyDonut Date: Sun, 9 Nov 2025 10:05:48 +0100 Subject: [PATCH] fix: Incorrect ratio passcode buttons --- lib/screens/shared/passcode_input.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/screens/shared/passcode_input.dart b/lib/screens/shared/passcode_input.dart index 366f3e5..7f82ff3 100644 --- a/lib/screens/shared/passcode_input.dart +++ b/lib/screens/shared/passcode_input.dart @@ -108,16 +108,16 @@ class _PassCodeInputState extends ConsumerState { } Widget passCodeNumber(int value) { - return ElevatedButton( + return IconButton.filled( autofocus: AdaptiveLayout.inputDeviceOf(context) == InputDevice.dPad ? value == 1 : false, onPressed: () { addToPassCode(value.toString()); }, - style: ElevatedButton.styleFrom( - padding: const EdgeInsets.all(8), - foregroundColor: Theme.of(context).colorScheme.onSurface, + style: ButtonStyle( + backgroundColor: WidgetStatePropertyAll(Theme.of(context).cardColor), + iconColor: WidgetStatePropertyAll(Theme.of(context).colorScheme.onSurfaceVariant), ), - child: Container( + icon: Container( width: iconSize, height: iconSize, alignment: Alignment.center,