login auth
This commit is contained in:
@@ -30,7 +30,6 @@ class _OtpScreenState extends State<OtpScreen> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
_startTimer();
|
||||
// Pre-fill demo OTP for the no-backend prototype.
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => _nodes[0].requestFocus());
|
||||
}
|
||||
|
||||
@@ -148,10 +147,10 @@ class _OtpScreenState extends State<OtpScreen> {
|
||||
height: 88,
|
||||
decoration: const BoxDecoration(
|
||||
color: AppColors.primaryFixed, shape: BoxShape.circle),
|
||||
child: const Icon(Icons.sms_rounded, size: 40, color: AppColors.primary),
|
||||
child: const Icon(Icons.mark_email_read_rounded, size: 40, color: AppColors.primary),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Text('Verify your number',
|
||||
Text('Verify your email',
|
||||
textAlign: TextAlign.center, style: AppTheme.headlineLg),
|
||||
const SizedBox(height: 8),
|
||||
Text.rich(
|
||||
@@ -160,7 +159,7 @@ class _OtpScreenState extends State<OtpScreen> {
|
||||
children: [
|
||||
const TextSpan(text: 'We sent a 6-digit code to '),
|
||||
TextSpan(
|
||||
text: '+91 ${phone.isEmpty ? '98111 22334' : phone}',
|
||||
text: context.read<AppState>().pendingEmail ?? 'your email',
|
||||
style: AppTheme.labelMd,
|
||||
),
|
||||
],
|
||||
@@ -194,9 +193,6 @@ class _OtpScreenState extends State<OtpScreen> {
|
||||
loading: _loading,
|
||||
onPressed: filled ? _verify : null,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text('Tip: enter any 6 digits to continue',
|
||||
style: AppTheme.caption.copyWith(color: AppColors.outline)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user