mirror of
https://github.com/Iconica-Development/flutter_login_widget.git
synced 2025-05-19 13:43:44 +02:00
feat: showLoginTitle option
This commit is contained in:
parent
ebe6d8a9e9
commit
5b63dbb2e2
2 changed files with 11 additions and 7 deletions
|
@ -143,6 +143,7 @@ class ConfigData {
|
|||
|
||||
class LoginOptions {
|
||||
const LoginOptions({
|
||||
this.showLoginTitle = true,
|
||||
this.loginImage = '',
|
||||
this.loginEmail,
|
||||
this.loginPassword,
|
||||
|
@ -157,6 +158,8 @@ class LoginOptions {
|
|||
this.onPressForgotPassword,
|
||||
});
|
||||
|
||||
final bool showLoginTitle;
|
||||
|
||||
/// The mode determining the login actions required to use the app.
|
||||
///
|
||||
/// [LoginMode.LoginAutomatic] Will automatically log in with [loginAccount]
|
||||
|
|
|
@ -163,6 +163,7 @@ class EmailLoginState extends LoginState<EmailPasswordLogin> {
|
|||
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
if (FlutterLogin.of(context).config.loginOptions.showLoginTitle)
|
||||
Container(
|
||||
padding: const EdgeInsets.only(top: 60),
|
||||
alignment: Alignment.topCenter,
|
||||
|
|
Loading…
Reference in a new issue