Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login/sign up form not changing according to login user type #289

Open
Murtoz-h opened this issue Nov 29, 2021 · 3 comments
Open

Login/sign up form not changing according to login user type #289

Murtoz-h opened this issue Nov 29, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Murtoz-h
Copy link

Murtoz-h commented Nov 29, 2021

Login/sign up form not changing according to login user type. The following code showing login/sign up page for "Email and password" not according to phone number.

Code is as following:

Widget build(BuildContext context) {
return FlutterLogin(
userType: LoginUserType.phone,
title: 'test',
logo: AssetImage('assets/images/r-logo.png'),
onLogin: _authUser,
onSignup: _signupUser,
onSubmitAnimationCompleted: () {
// Navigator.of(context).pushReplacement(MaterialPageRoute(
// builder: (context) => DashboardScreen(),
// ));
Get.snackbar('Login', 'Login Successful');
},
initialAuthMode: AuthMode.signup,
onRecoverPassword: _recoverPassword,
);
}

@Murtoz-h Murtoz-h added the bug Something isn't working label Nov 29, 2021
@Murtoz-h
Copy link
Author

When putting phone number as additionalsignup field with usertype phone, its working as expected. But whatever I choose usertype in flutter login form, regardless that, its always starting with with default behaviour.

@gkustas
Copy link

gkustas commented Dec 8, 2021

Can someone verify if this is "by design"? That is, can we use this package to support username/password as opposed to email/password?

@gaaschk
Copy link

gaaschk commented Jan 6, 2022

Are there any workarounds for this?

sudip39 pushed a commit to sudip39/flutter_login that referenced this issue Jan 31, 2022
sudip39 pushed a commit to sudip39/flutter_login that referenced this issue Jan 31, 2022
juliansteenbakker added a commit that referenced this issue Mar 15, 2022
Fixed label text not changing according to user type #289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants