Commit 07033f1f authored by Tohap Maruli Pasaribu's avatar Tohap Maruli Pasaribu

Merge branch 'master' of http://103.44.149.204/qorridi/medapp_eksad into develop

parents afdcae7d b0fc2c8b
...@@ -31,7 +31,7 @@ class FirebaseAuthMethods { ...@@ -31,7 +31,7 @@ class FirebaseAuthMethods {
required String addressRS, required String addressRS,
required String namePIC, required String namePIC,
required String phonePIC, required String phonePIC,
required String addressPIC, //required String addressPIC,
required String email, required String email,
required String password, required String password,
required BuildContext context, required BuildContext context,
......
...@@ -27,24 +27,32 @@ class _RegisterState extends State<Register> { ...@@ -27,24 +27,32 @@ class _RegisterState extends State<Register> {
final passwordController = TextEditingController(); final passwordController = TextEditingController();
void signUpUser() async { void signUpUser() async {
signUp(
nameRSController.value.text,
phoneRSController.value.text,
addressRSController.value.text,
namePICController.value.text,
phonePICController.value.text,
emailPICController.value.text,
passwordController.value.text);
context.read<FirebaseAuthMethods>().signUpWithEmail( context.read<FirebaseAuthMethods>().signUpWithEmail(
nameRS: nameRSController.text, nameRS: nameRSController.text,
phoneRS: phoneRSController.text, phoneRS: phoneRSController.text,
addressRS: addressRSController.text, addressRS: addressRSController.text,
namePIC: namePICController.text, namePIC: namePICController.text,
phonePIC: phonePICController.text, phonePIC: phonePICController.text,
addressPIC: addressPICController.text, //addressPIC: addressPICController.text,
email: emailPICController.text, email: emailPICController.text,
password: passwordController.text, password: passwordController.text,
context: context, context: context,
); );
signUp( nameRSController.value.text, // signUp( nameRSController.value.text,
phoneRSController.value.text, // phoneRSController.value.text,
addressRSController.value.text, // addressRSController.value.text,
namePICController.value.text, // namePICController.value.text,
phonePICController.value.text, // phonePICController.value.text,
emailPICController.value.text, // emailPICController.value.text,
passwordController.value.text); // passwordController.value.text);
} }
@override @override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment