onSignup method
void
onSignup()
Implementation
void onSignup() async {
final Map<String, dynamic> response =
await AppwriteService.createEmailAccount(
name: nameController.text,
email: emailController.text,
password: passwordController.text,
);
if (response['error'] ?? false) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(response['message']),
),
);
return;
}
await widget.successCallback(response);
}