Extracted VerticalSpacing

This commit is contained in:
dankito 2024-09-05 02:30:53 +02:00
parent e06e84e6ff
commit d1687e894b
1 changed files with 5 additions and 3 deletions

View File

@ -48,6 +48,8 @@ private val itemModifier = Modifier.height(ItemHeight).widthIn(min = 350.dp)
private val iconSize = 24.dp
private val VerticalSpacing = 12.dp
@Composable
fun SideMenu(appContent: @Composable () -> Unit) {
@ -90,7 +92,7 @@ fun SideMenu(appContent: @Composable () -> Unit) {
}
}
Spacer(Modifier.height(12.dp))
Spacer(Modifier.height(VerticalSpacing))
NavigationMenuItem(itemModifier, "Konto hinzufügen", textColor, horizontalPadding = ItemHorizontalPadding, icon = { Icon(Icons.Filled.Add, "Konto hinzufügen", Modifier.size(iconSize)) }) {
uiState.showAddAccountDialog.value = true
@ -101,7 +103,7 @@ fun SideMenu(appContent: @Composable () -> Unit) {
}
if (accounts.isNotEmpty()) {
Spacer(Modifier.height(12.dp))
Spacer(Modifier.height(VerticalSpacing))
NavigationMenuItem(itemModifier, "Neue Überweisung", textColor, horizontalPadding = ItemHorizontalPadding, icon = { Icon(Icons.Filled.Add, "Konto hinzufügen", Modifier.size(iconSize)) }) {
uiState.showTransferMoneyDialog.value = true
@ -116,7 +118,7 @@ fun SideMenu(appContent: @Composable () -> Unit) {
if (accounts.isNotEmpty()) {
Divider(color = Colors.DrawerDivider)
Spacer(Modifier.height(12.dp))
Spacer(Modifier.height(VerticalSpacing))
NavigationMenuItem(itemModifier, "Daten exportieren", textColor, horizontalPadding = ItemHorizontalPadding, icon = { Icon(Icons.AutoMirrored.Filled.Send, "Konto hinzufügen", Modifier.size(iconSize)) }) {
coroutineScope.launch {