Extracted VerticalSpacing
This commit is contained in:
parent
e06e84e6ff
commit
d1687e894b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue