LoginOptions class

Annotations

Constructors

LoginOptions({Widget? image, Widget? title = const Text('Log in', style: TextStyle(color: Color(0xff71C6D1), fontWeight: FontWeight.w800, fontSize: 24)), Widget? subtitle, double? maxFormWidth, TextStyle? emailTextStyle, TextStyle? passwordTextStyle, TextAlign? emailTextAlign, TextAlign? passwordTextAlign, InputDecoration emailDecoration = const InputDecoration(contentPadding: EdgeInsets.symmetric(horizontal: 8), labelText: 'Email address', border: OutlineInputBorder(), focusedBorder: OutlineInputBorder(borderSide: BorderSide(color: Color(0xff71C6D1))), labelStyle: TextStyle(color: Colors.black, fontWeight: FontWeight.w400, fontSize: 16)), InputDecoration passwordDecoration = const InputDecoration(contentPadding: EdgeInsets.symmetric(horizontal: 8), labelText: 'Password', border: OutlineInputBorder(), focusedBorder: OutlineInputBorder(borderSide: BorderSide(color: Color(0xff71C6D1))), labelStyle: TextStyle(color: Colors.black, fontWeight: FontWeight.w400, fontSize: 16)), String initialEmail = '', String initialPassword = '', LoginSpacerOptions spacers = const LoginSpacerOptions(spacerBeforeTitle: 8, spacerAfterTitle: 2, formFlexValue: 2), LoginTranslations translations = const LoginTranslations(), ValidationService? validationService, ButtonBuilder loginButtonBuilder = _createLoginButton, ButtonBuilder forgotPasswordButtonBuilder = _createForgotPasswordButton, ButtonBuilder requestForgotPasswordButtonBuilder = _createRequestForgotPasswordButton, ButtonBuilder registrationButtonBuilder = _createRegisterButton, InputContainerBuilder emailInputContainerBuilder = _createEmailInputContainer, InputContainerBuilder passwordInputContainerBuilder = _createPasswordInputContainer, bool showObscurePassword = true, ForgotPasswordSpacerOptions forgotPasswordSpacerOptions = const ForgotPasswordSpacerOptions(spacerAfterButton: 3, spacerBeforeTitle: 1), Color loginBackgroundColor = const Color(0xffFAF9F6), Color forgotPasswordBackgroundColor = const Color(0xffFAF9F6), Padding forgotPasswordScreenPadding = const Padding(padding: EdgeInsets.symmetric(horizontal: 60)), AppBar? forgotPasswordCustomAppBar})
const

Properties

emailDecoration → InputDecoration
Decoration for the email input field.
final
emailInputContainerBuilder → InputContainerBuilder
Builds the email input container.
final
emailTextAlign → TextAlign?
The text alignment for the email input field.
final
emailTextStyle → TextStyle?
The text style for the email input field.
final
forgotPasswordBackgroundColor → Color
The background color for the forgot password screen.
final
forgotPasswordButtonBuilder → ButtonBuilder
Builds the forgot password button.
final
forgotPasswordCustomAppBar → AppBar?
forgot password custom AppBar
final
forgotPasswordScreenPadding → Padding
The padding for the forgot password screen.
final
forgotPasswordSpacerOptions → ForgotPasswordSpacerOptions
Option to modify the spacing between the items on the forgotPasswordForm.
final
hashCode → int
The hash code for this object.
no setterinherited
image → Widget?
The image to display on the login screen.
final
initialEmail → String
The initial email value for the email input field.
final
initialPassword → String
The initial password value for the password input field.
final
loginBackgroundColor → Color
The background color for the login screen.
final
loginButtonBuilder → ButtonBuilder
Builds the login button.
final
maxFormWidth → double?
Maximum width of the form. Defaults to 400.
final
passwordDecoration → InputDecoration
Decoration for the password input field.
final
passwordInputContainerBuilder → InputContainerBuilder
Builds the password input container.
final
passwordTextAlign → TextAlign?
The text alignment for the password input field.
final
passwordTextStyle → TextStyle?
The text style for the password input field.
final
registrationButtonBuilder → ButtonBuilder
Builds the registration button.
final
requestForgotPasswordButtonBuilder → ButtonBuilder
Builds the request forgot password button.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showObscurePassword → bool
Determines whether the password field should be obscured.
final
spacers → LoginSpacerOptions
Option to modify the spacing between the title, subtitle, image, form, and button.
final
subtitle → Widget?
The subtitle widget to display on the login screen.
final
title → Widget?
The title widget to display on the login screen.
final
translations → LoginTranslations
Translations for various texts on the login screen.
final
validations → ValidationService
Get validations.
no setter
validationService → ValidationService?
The validation service used for validating email and password inputs.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited