fix: Incorrect ratio passcode buttons

This commit is contained in:
PartyDonut 2025-11-09 10:05:48 +01:00
parent 0e4514af84
commit 2f7328c954

View file

@ -108,16 +108,16 @@ class _PassCodeInputState extends ConsumerState<PassCodeInput> {
}
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,