Description
Implement the 4-digit OTP confirmation screen for both patient and doctor authentication flows.
Design Reference
Figma Frames:
- Patient:
Patient Confirmation code (576:2792)
- Doctor:
Confirmation code (576:3017, 576:3002)
Requirements
API Integration
Features
Technical Notes
- Create reusable component for both apps
- Use platform-specific keyboard type (number)
- Implement auto-focus logic with FocusNode
- Store verification state
Dependencies
Files to Create/Modify
lib/features/auth/presentation/pages/confirmation_code_page.dart
lib/features/auth/presentation/widgets/otp_input_field.dart
lib/core/utils/otp_controller.dart
Priority
High
Acceptance Criteria
- OTP fields work smoothly with auto-focus
- Resend works with countdown timer
- Verification success navigates correctly
- Error states handled properly
Description
Implement the 4-digit OTP confirmation screen for both patient and doctor authentication flows.
Design Reference
Figma Frames:
Patient Confirmation code(576:2792)Confirmation code(576:3017, 576:3002)Requirements
API Integration
Features
Technical Notes
Dependencies
Files to Create/Modify
lib/features/auth/presentation/pages/confirmation_code_page.dartlib/features/auth/presentation/widgets/otp_input_field.dartlib/core/utils/otp_controller.dartPriority
High
Acceptance Criteria