Skip to content

Instantly share code, notes, and snippets.

@theindianappguy
Last active December 11, 2020 15:12
Show Gist options
  • Save theindianappguy/533b713c8c9991ab57a43d074d43c536 to your computer and use it in GitHub Desktop.
Save theindianappguy/533b713c8c9991ab57a43d074d43c536 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