diff --git a/lib/login_config.dart b/lib/login_config.dart index 4e2753a..3a133a4 100644 --- a/lib/login_config.dart +++ b/lib/login_config.dart @@ -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] diff --git a/lib/plugins/login/login_email_password.dart b/lib/plugins/login/login_email_password.dart index cbf0fc2..6680772 100644 --- a/lib/plugins/login/login_email_password.dart +++ b/lib/plugins/login/login_email_password.dart @@ -163,14 +163,15 @@ class EmailLoginState extends LoginState { return Column( children: [ - Container( - padding: const EdgeInsets.only(top: 60), - alignment: Alignment.topCenter, - child: Text( - context.translate('login.text.title'), - style: Theme.of(context).textTheme.headline6, + if (FlutterLogin.of(context).config.loginOptions.showLoginTitle) + Container( + padding: const EdgeInsets.only(top: 60), + alignment: Alignment.topCenter, + child: Text( + context.translate('login.text.title'), + style: Theme.of(context).textTheme.headline6, + ), ), - ), Container( padding: const EdgeInsets.only(top: 10), alignment: Alignment.topCenter,