Skip to content

Implement Sign Up Screen #21

@xkaper001

Description

@xkaper001

Description

Implement the registration/sign up screen for new doctor accounts.

Design Reference

Figma Frame: Sign up (576:2987, 576:2972)

Requirements

  • Full name input field
  • Email input field with validation
  • Password input field with strength indicator
  • Confirm password input field
  • Terms & Conditions checkbox with clickable text
  • Privacy Policy acceptance
  • "Sign up" button
  • Keyboard handling (dismiss on scroll/tap outside)
  • Form validation:
    • Valid email format
    • Strong password requirements (min 8 chars, uppercase, number, special char)
    • Passwords match
    • Terms acceptance required
  • Navigate to confirmation code screen after signup

API Integration

  • User registration endpoint
  • Handle duplicate email errors
  • Loading states during registration
  • Send OTP for email verification

Technical Notes

  • Create in docpilot_doctor/lib/features/auth/presentation/pages/
  • Implement password strength validator with visual indicator
  • Add proper keyboard dismissal
  • Show/hide password toggle

Dependencies

Files to Create/Modify

  • lib/features/auth/presentation/pages/sign_up_page.dart
  • lib/features/auth/presentation/widgets/sign_up_form.dart
  • lib/features/auth/presentation/widgets/password_strength_indicator.dart
  • lib/core/validators/password_validator.dart

Priority

High

Acceptance Criteria

  • All validation rules enforced
  • Password strength shown visually
  • Terms must be accepted to proceed
  • UI matches Figma design with keyboard

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions