Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class ConfirmSignUpFormField<FieldValue>
validator: validator,
);

/// Creates a username component.
/// {@macro amplify_authenticator.username_form_field}
static ConfirmSignUpFormField username({
Key? key,
FormFieldValidator<UsernameInput>? validator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class SignInFormField<FieldValue> extends AuthenticatorFormField<
requiredOverride: required,
);

/// Creates a username FormField for the sign in step.
/// {@macro amplify_authenticator.username_form_field}
static SignInFormField username({
Key? key,
FormFieldValidator<UsernameInput>? validator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,16 @@ abstract class SignUpFormField<FieldValue> extends AuthenticatorFormField<
requiredOverride: required,
);

/// Creates a username component.
/// {@template amplify_authenticator.username_form_field}
/// Creates a username component based on your app's configuration.
///
/// The look and behavior of this widget will depend on your app's auth configuration.
/// The `usernameAttributes` will be used to determine if the field is a standard
/// username field, and email field, or a phone number field.
/// {@endtemplate}
///
/// If your app is configured to use email or phone, the value provided for this widget
/// will be saved as the user's email or phone number in addition to their username.
static SignUpFormField username({
Key? key,
FormFieldValidator<UsernameInput>? validator,
Expand Down