Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vikivyas/4dcdb55ff142da3264605c7fcc34370d to your computer and use it in GitHub Desktop.
Save vikivyas/4dcdb55ff142da3264605c7fcc34370d to your computer and use it in GitHub Desktop.
Signup function in signup.dart Chat App with Flutter and Firebase
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