Last active
December 11, 2020 15:12
-
-
Save theindianappguy/533b713c8c9991ab57a43d074d43c536 to your computer and use it in GitHub Desktop.
Signup function in signup.dart Chat App with Flutter and Firebase
This file contains 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