Añadir con que usuario esta logueado

This commit is contained in:
2026-08-07 09:47:00 +02:00
parent 1a4beeeb3c
commit 79f7a35640
3 changed files with 76 additions and 1 deletions
@@ -111,7 +111,20 @@ fun PantryScreen(
Scaffold(
topBar = {
TopAppBar(
title = { Text(if (showShoppingList) stringResource(R.string.shopping_list_title) else stringResource(R.string.pantry_title)) },
title = {
Column {
Text(
if (showShoppingList) stringResource(R.string.shopping_list_title)
else stringResource(R.string.pantry_title),
style = MaterialTheme.typography.titleLarge
)
Text(
stringResource(R.string.pantry_subtitle, userName),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onPrimaryContainer.copy(alpha = 0.8f)
)
}
},
actions = {
if (showShoppingList) {
IconButton(onClick = { shareShoppingList() }) {
+1
View File
@@ -38,6 +38,7 @@
<!-- Pantry Screen -->
<string name="pantry_title">Mi Despensa</string>
<string name="pantry_subtitle">Usuario: %1$s</string>
<string name="shopping_list_title">Lista de la Compra</string>
<string name="pantry_search_placeholder">Buscar productos...</string>
<string name="pantry_search_clear">Limpiar</string>