mirror of
https://github.com/Iconica-Development/flutter_login_widget.git
synced 2025-05-18 21:23:44 +02:00
Merge pull request #31 from Iconica-Development/bugfix/default_loginoptions
fix: add default loginoptions for email and password fields
This commit is contained in:
commit
aeb0a93c8d
3 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
## 6.0.1
|
||||
|
||||
* Added default loginOptions for email and password fields.
|
||||
|
||||
## 6.0.0
|
||||
|
||||
* Changed ForgotPasswordform to use the same layout as the EmailPasswordLoginForm.
|
||||
|
|
|
@ -35,6 +35,17 @@ class LoginOptions {
|
|||
this.forgotPasswordSpacerOptions = const ForgotPasswordSpacerOptions(),
|
||||
});
|
||||
|
||||
factory LoginOptions.defaults() => const LoginOptions(
|
||||
emailDecoration: InputDecoration(
|
||||
labelText: 'Email',
|
||||
hintText: 'Enter your email',
|
||||
),
|
||||
passwordDecoration: InputDecoration(
|
||||
labelText: 'Password',
|
||||
hintText: 'Enter your password',
|
||||
),
|
||||
);
|
||||
|
||||
/// Builds the login button.
|
||||
final ButtonBuilder loginButtonBuilder;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_login
|
||||
description: Flutter Login Component
|
||||
version: 6.0.0
|
||||
version: 6.0.1
|
||||
|
||||
environment:
|
||||
sdk: ">=2.18.1 <3.0.0"
|
||||
|
|
Loading…
Reference in a new issue