Forked from theindianappguy/signup_function_in_signup.dart
Created
December 11, 2020 15:12
-
-
Save vikivyas/4dcdb55ff142da3264605c7fcc34370d to your computer and use it in GitHub Desktop.
Signup function in signup.dart Chat App with Flutter and Firebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
singUp() async { | |
if(formKey.currentState.validate()){ | |
setState(() { | |
isLoading = true; | |
}); | |
await authService.signUpWithEmailAndPassword(emailEditingController.text, | |
passwordEditingController.text).then((result){ | |
if(result != null){ | |
Navigator.pushReplacement(context, MaterialPageRoute( | |
builder: (context) => ChatRoom() | |
)); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment