Añadir crear usuario a mariadb

This commit is contained in:
2026-07-13 13:35:40 +02:00
parent f680750119
commit fcb8869e0a
7 changed files with 222 additions and 27 deletions
@@ -11,7 +11,7 @@ import com.example.saludapp.data.DatabaseHelper
import kotlinx.coroutines.launch
@Composable
fun LoginScreen(onLoginSuccess: () -> Unit) {
fun LoginScreen(onLoginSuccess: () -> Unit, onNavigateToRegister: () -> Unit) {
var email by remember { mutableStateOf("") }
var password by remember { mutableStateOf("") }
var isLoading by remember { mutableStateOf(false) }
@@ -97,6 +97,10 @@ fun LoginScreen(onLoginSuccess: () -> Unit) {
Text("Entrar")
}
}
TextButton(onClick = onNavigateToRegister) {
Text("¿No tienes cuenta? Regístrate aquí")
}
}
}
}