fix: pincode functionality
This commit is contained in:
@@ -242,30 +242,32 @@ class _PinKeypad extends StatelessWidget {
|
||||
children: [
|
||||
for (final row in _rows)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 6),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
spacing: 16,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
for (final digit in row)
|
||||
for (final digit in row) ...[
|
||||
_KeypadButton(
|
||||
label: digit,
|
||||
onTap: enabled ? () => onDigit(digit) : null,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 6),
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
spacing: 16,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const _KeypadButton(isSpacer: true, onTap: null),
|
||||
const SizedBox(width: 20),
|
||||
_KeypadButton(
|
||||
label: '0',
|
||||
onTap: enabled ? () => onDigit('0') : null,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
_KeypadButton(
|
||||
icon: Icons.backspace_outlined,
|
||||
onTap: enabled ? onBackspace : null,
|
||||
@@ -294,14 +296,14 @@ class _KeypadButton extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (isSpacer) {
|
||||
return const SizedBox(width: 72, height: 72);
|
||||
return const SizedBox(width: 80, height: 80);
|
||||
}
|
||||
|
||||
final scheme = Theme.of(context).colorScheme;
|
||||
|
||||
return SizedBox(
|
||||
width: 72,
|
||||
height: 72,
|
||||
width: 80,
|
||||
height: 80,
|
||||
child: Material(
|
||||
color: scheme.onSurface.withValues(alpha: 0.04),
|
||||
shape: const CircleBorder(),
|
||||
|
||||
Reference in New Issue
Block a user