Skip to content

Commit

Permalink
Fix Ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisBauer committed Sep 23, 2023
1 parent 0691a11 commit 26b1116
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
17 changes: 10 additions & 7 deletions app/src/main/java/de/dbauer/expensetracker/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,20 @@ fun MainActivityContent(
FloatingActionButton(onClick = {
addRecurringExpenseVisible = true
}) {
Icon(imageVector = Icons.Rounded.Add, contentDescription = stringResource(R.string.home_add_expense_fab_content_description))
Icon(
imageVector = Icons.Rounded.Add,
contentDescription = stringResource(R.string.home_add_expense_fab_content_description),
)
}
},
content = { paddingValues ->
NavHost(
navController = navController,
startDestination = BottomNavigation.Home.route,
modifier =
Modifier
.fillMaxSize()
.padding(paddingValues),
Modifier
.fillMaxSize()
.padding(paddingValues),
) {
composable(BottomNavigation.Home.route) {
RecurringExpenseOverview(
Expand All @@ -181,9 +184,9 @@ fun MainActivityContent(
},
contentPadding = PaddingValues(top = 8.dp, bottom = 88.dp),
modifier =
Modifier
.padding(horizontal = 16.dp)
.nestedScroll(scrollBehavior.nestedScrollConnection),
Modifier
.padding(horizontal = 16.dp)
.nestedScroll(scrollBehavior.nestedScrollConnection),
)
}
composable(BottomNavigation.Settings.route) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ private fun RecurringExpenseSummary(
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier =
modifier
.fillMaxWidth()
.padding(8.dp),
modifier
.fillMaxWidth()
.padding(8.dp),
) {
Text(
text = stringResource(R.string.home_summary_monthly),
Expand Down Expand Up @@ -131,9 +131,9 @@ private fun RecurringExpense(
) {
Column(
modifier =
Modifier
.padding(end = 16.dp)
.weight(1f),
Modifier
.padding(end = 16.dp)
.weight(1f),
) {
Text(
text = recurringExpenseData.name,
Expand Down

0 comments on commit 26b1116

Please sign in to comment.