Available block data
Stores signup initialization details likefullName
, email
, and primaryLoading
.
Available block methods
navigateToLogin()
: Redirects users to the login screen.submitSignupInit({String? email, String? fullName}) async
: Initiates the signup process with optional email and full name.
Implementation Steps
1
Create Signup Screen
Create a new screen that implements the
SignupInitBlock
interface. This screen will handle the initial signup process.lib/screens/signup_init.dart
2
Set Up Controllers
Initialize text controllers for the email and full name input fields, pre-populated with any existing values.
lib/screens/signup_init.dart
3
Create Input Fields
Implement text fields for email and full name input with proper styling.
4
Add Navigation and Action Buttons
Implement buttons for navigating to login and submitting the signup form.
For a complete implementation example, see the SignupInitScreen implementation on GitHub.