![]() The color to use for input validation errors The secondary color, used for title text color, loading icon, etc. The background color of major parts of the widget like the login screen and buttons The success message to show after confirming recovered passwordĪ string shown above the login Providers, defaults to or login with Set password button's label for password recovery The error message to show if recovery code is empty The intro text for the confirm recover password card The success message to show after confirming signup The success message to show after resending a confirmation code The error message to show if confirmation code is empty The intro text for the confirm signup card The success message to show after submitting recover password The error message to show when the confirm password not match with the original password ![]() Go back button is used to go back to to login/signup form from the recover password form Hint text of the confirm password ĭescription in password recovery form, shown when the onConfirmRecover callback is not providedĭescription in password recovery form, shown when the onConfirmRecover callback is provided Hint text of the user field (Note: user field can be name, email or phone. This line import 'package:flutter_login/theme.dart' LoginThemeHelper can be accessed by adding LoginThemeHelper.loginTextStyle in the next screen to get the style of theĮxact text widget in the login screen. NOTE: It is recommended that the child widget of the Hero widget should be the When set to true, the login card becomes scrollable instead of resizing when needed.Ī widget that can be placed on top of the loginCard. Can be used to show custom banners or logos. List of widgets that can be added to the stack of the login screen. On onSignup callback LoginData contains a list of TermOfServiceResult List of terms of service to be listed during registration. Will set also confirmation password in Auth class saved from previous session via other means, ie. Navigate back to the login page after successful recovery. You can provide at most 6 additional fields.Ĭalled when the user switches to additional fields. Used to specify the additional form fields the form is shown right after signin up. The default is falseĭisables the custom transition which causes RenderBox was not laid out error. In case the providers List is empty this is uneffective, as the title is hidden anyways. Hides the title above login providers if set to true. Hides the Forgot Password button if set to true In release mode, this will be overridden to false regardless of the value passed in Need to specify LoginTheme.beforeHeroFontSize and LoginTheme.afterHeroFontSize if you want different font size before and after hero animationĭisplay the debug buttons to quickly forward/reverse login animations. If not specified, it will simply fade out when changing route Default: Ĭalled after the submit animation's completed. Should email be validated after losing focus or after form submissions. Expects to return an error message to be display if validation fails or if validation succeeds User field validating logic, add your custom validation here. If not specified, it will use the default user type as email If not specified, it will use the default theme as shown in the demo gifs and use the colorsheme in the closest Theme widgetįlutterLogin's user type. The image provider or asset path string for the logo image to be displayedĭescribes all of the labels, text hints, button texts and other auth descriptionsįlutterLogin's theme. Leave the string empty or null if you want no title. The large text above the login, usually the app or company name. If not specified, a confirmation code will not be used to recover password. Only required when onConfirmSignup is provided.Ĭalled when the user hit the submit button when in login modeĬalled when the user hit the submit button when in recover password modeĬalled when the user submits confirmation code and sets password in recover password mode. ![]() The keyboard type of the confirm signup fieldĬalled when the user hits the resend code button when confirming signup. If not specified, signup will be confirmed by user if onConfirmSignup is specified. If not specified, signup will not be confirmed by user.Īdditional option to decide in runtime if confirmation is required. ![]() It receives a SignupData object, with name, password and, if additionalSignUpFields is not null, the additional fields filled in by the user in a MapĬalled when the user hits the submit button when confirming signup. FlutterLogin is a ready-made login/signup widget with many animation effects toįollow the install instructions here Reference # PropertyĬalled when the user hit the submit button when in sign up mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |