Añadir con que usuario esta logueado
This commit is contained in:
@@ -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() }) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user