// import 'package:supabase_flutter/supabase_flutter.dart'; // import 'package:pharmacy_mobile/main.dart'; // Future signUp() async { // try { // await supabase.auth.signUp( // email: email, // password: password, // ); // // if (mounted) { // // context.showSnackBar('Check your email for a login link!'); // // _emailController.clear(); // // } // } on AuthException catch (error) { // if (mounted) context.showSnackBar(error.message, isError: true); // } catch (error) { // if (mounted) { // context.showSnackBar('Unexpected error occurred', isError: true); // } // } finally { // if (mounted) { // setState(() { // _isLoading = false; // }); // } // } // }