Open fisforfaheem opened 2 years ago
use hideForgotPasswordButton to hide recover password
Can u please show an example if possible
You need to pass these 2 properties to the FlutterLogin Widget:
return FlutterLogin(
hideForgotPasswordButton: true,
onSignup: null,
logo: AssetImage('assets/images/logo-mph.jpg'),
userType: LoginUserType.name,
theme: LoginTheme(
primaryColor: theme.primaryColor,
),
messages: LoginMessages(
userHint: "RUT",
passwordHint: "Contraseña",
confirmPasswordHint: "Confirmar contraseña",
loginButton: "Ingresar",
),
userValidator: RUTValidator(validationErrorText: "El RUT no es válido").validator,
passwordValidator: (value) {
if (value == null || value.isEmpty) {
return 'Debe ingresar una contraseña';
}
return null;
},
onLogin: _authUser,
onSubmitAnimationCompleted: () {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => DashboardScreen(),
));
},
onRecoverPassword: _recoverPassword
);
it would help many who just want t add login functionality