feat: showLoginTitle option

This commit is contained in:
Stein Milder 2022-09-27 11:15:03 +02:00
parent ebe6d8a9e9
commit 5b63dbb2e2
2 changed files with 11 additions and 7 deletions

View file

@ -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]

View file

@ -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,