email registration updated

This commit is contained in:
Stephan D
2026-02-17 10:20:39 +01:00
parent 11d4b9a608
commit 9bdb667b08
4 changed files with 15 additions and 20 deletions

View File

@@ -12,21 +12,18 @@ class TwoFactorCodeInput extends StatelessWidget {
Widget build(BuildContext context) => Center(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 300),
child: PinCodeTextField(
child: MaterialPinField(
length: 6,
appContext: context,
autoFocus: true,
keyboardType: TextInputType.number,
animationType: AnimationType.fade,
cursorColor: Theme.of(context).colorScheme.primary,
pinTheme: PinTheme(
shape: PinCodeFieldShape.box,
theme: MaterialPinTheme(
entryAnimation: MaterialPinAnimation.fade,
shape: MaterialPinShape.outlined,
borderRadius: BorderRadius.circular(4),
fieldHeight: 48,
fieldWidth: 40,
inactiveColor: Theme.of(context).colorScheme.primaryContainer,
activeColor: Theme.of(context).colorScheme.primary,
selectedColor: Theme.of(context).colorScheme.primary,
cellSize: Size(40, 48),
borderColor: Theme.of(context).colorScheme.primaryContainer,
focusedBorderColor: Theme.of(context).colorScheme.primary,
cursorColor: Theme.of(context).colorScheme.primary,
),
onCompleted: onCompleted,
onChanged: (_) {},