|
@@ -149,19 +149,40 @@ class _LockScreenState extends State<LockScreen>
|
|
|
const SizedBox(height: 14),
|
|
const SizedBox(height: 14),
|
|
|
SizedBox(
|
|
SizedBox(
|
|
|
height: 42,
|
|
height: 42,
|
|
|
- child: AnimatedSwitcher(
|
|
|
|
|
- duration: const Duration(milliseconds: 160),
|
|
|
|
|
- child: Text(
|
|
|
|
|
- error ?? 'Enter your four-digit PIN',
|
|
|
|
|
- key: ValueKey(error ?? 'hint'),
|
|
|
|
|
- textAlign: TextAlign.center,
|
|
|
|
|
- style: theme.textTheme.bodySmall?.copyWith(
|
|
|
|
|
- color: error == null
|
|
|
|
|
- ? colors.inkFaint
|
|
|
|
|
- : colors.danger,
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ child: _busy
|
|
|
|
|
+ ? Row(
|
|
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ SizedBox(
|
|
|
|
|
+ width: 16,
|
|
|
|
|
+ height: 16,
|
|
|
|
|
+ child: CircularProgressIndicator(
|
|
|
|
|
+ strokeWidth: 2,
|
|
|
|
|
+ color: colors.accent,
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ const SizedBox(width: 9),
|
|
|
|
|
+ Text(
|
|
|
|
|
+ 'Checking…',
|
|
|
|
|
+ style: theme.textTheme.bodySmall?.copyWith(
|
|
|
|
|
+ color: colors.inkMuted,
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
|
|
+ )
|
|
|
|
|
+ : AnimatedSwitcher(
|
|
|
|
|
+ duration: const Duration(milliseconds: 160),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ error ?? 'Enter your four-digit PIN',
|
|
|
|
|
+ key: ValueKey(error ?? 'hint'),
|
|
|
|
|
+ textAlign: TextAlign.center,
|
|
|
|
|
+ style: theme.textTheme.bodySmall?.copyWith(
|
|
|
|
|
+ color: error == null
|
|
|
|
|
+ ? colors.inkFaint
|
|
|
|
|
+ : colors.danger,
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
const SizedBox(height: 12),
|
|
const SizedBox(height: 12),
|
|
|
PinKeypad(
|
|
PinKeypad(
|