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

i need help #79

Open
EwigLife opened this issue Aug 4, 2021 · 0 comments
Open

i need help #79

EwigLife opened this issue Aug 4, 2021 · 0 comments

Comments

@EwigLife
Copy link

EwigLife commented Aug 4, 2021

class _SignUpPageState extends State<SignUpPage> {
  final TextEditingController fnameController = TextEditingController();
  final TextEditingController lnameController = TextEditingController();
  final TextEditingController passwrodController = TextEditingController();
  final TextEditingController emailController = TextEditingController();

  ShopifyAuth auth = ShopifyAuth.instance;
  ShopifyUser user;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            TextFormField(
              controller: emailController,
            ),
            TextFormField(
              controller: passwrodController,
            ),
            ElevatedButton(
                onPressed: () async {
                  await auth.createUserWithEmailAndPassword(
                      email: emailController.text,
                      password: passwrodController.text);
                  print(emailController.text + passwrodController.text);
                },
                child: Text('Sign up'))
          ],
        ),
      ),
    );
  }
}

E/flutter ( 1821): Receiver: null
E/flutter ( 1821): Tried calling:
E/flutter ( 1821): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
E/flutter ( 1821): #1 ShopifyUser.fromJson
package:flutter_simple_shopify/…/src/shopify_user.dart:30
E/flutter ( 1821): #2 ShopifyAuth.createUserWithEmailAndPassword
package:flutter_simple_shopify/…/src/shopify_auth.dart:46
E/flutter ( 1821):
E/flutter ( 1821): #3 _SignUpPageState.build.
package:e_com_app_v_1_0/Screens/SignupPage.dart:35
E/flutter ( 1821):
E/flutter ( 1821):

i am geting the above response when trying to sign in please guide where i am wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant