mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Incorrect ratio passcode buttons
This commit is contained in:
parent
0e4514af84
commit
2f7328c954
1 changed files with 5 additions and 5 deletions
|
|
@ -108,16 +108,16 @@ class _PassCodeInputState extends ConsumerState<PassCodeInput> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget passCodeNumber(int value) {
|
Widget passCodeNumber(int value) {
|
||||||
return ElevatedButton(
|
return IconButton.filled(
|
||||||
autofocus: AdaptiveLayout.inputDeviceOf(context) == InputDevice.dPad ? value == 1 : false,
|
autofocus: AdaptiveLayout.inputDeviceOf(context) == InputDevice.dPad ? value == 1 : false,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
addToPassCode(value.toString());
|
addToPassCode(value.toString());
|
||||||
},
|
},
|
||||||
style: ElevatedButton.styleFrom(
|
style: ButtonStyle(
|
||||||
padding: const EdgeInsets.all(8),
|
backgroundColor: WidgetStatePropertyAll(Theme.of(context).cardColor),
|
||||||
foregroundColor: Theme.of(context).colorScheme.onSurface,
|
iconColor: WidgetStatePropertyAll(Theme.of(context).colorScheme.onSurfaceVariant),
|
||||||
),
|
),
|
||||||
child: Container(
|
icon: Container(
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue