Commit e430a69a authored by Ade Fikriatul  Ilmi's avatar Ade Fikriatul Ilmi
parents 799c82c4 b0fc2c8b
......@@ -31,7 +31,7 @@ class FirebaseAuthMethods {
required String addressRS,
required String namePIC,
required String phonePIC,
required String addressPIC,
//required String addressPIC,
required String email,
required String password,
required BuildContext context,
......
......@@ -27,24 +27,32 @@ class _RegisterState extends State<Register> {
final passwordController = TextEditingController();
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(
nameRS: nameRSController.text,
phoneRS: phoneRSController.text,
addressRS: addressRSController.text,
namePIC: namePICController.text,
phonePIC: phonePICController.text,
addressPIC: addressPICController.text,
//addressPIC: addressPICController.text,
email: emailPICController.text,
password: passwordController.text,
context: context,
);
signUp( nameRSController.value.text,
phoneRSController.value.text,
addressRSController.value.text,
namePICController.value.text,
phonePICController.value.text,
emailPICController.value.text,
passwordController.value.text);
// signUp( nameRSController.value.text,
// phoneRSController.value.text,
// addressRSController.value.text,
// namePICController.value.text,
// phonePICController.value.text,
// emailPICController.value.text,
// passwordController.value.text);
}
@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