Skip to content

Commit

Permalink
padding edits
Browse files Browse the repository at this point in the history
  • Loading branch information
nxoim committed Sep 4, 2024
1 parent c317fd3 commit ec82954
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ fun HomeScreen(
sharedContentState = rememberSharedContentState(key = "fab"),
animatedVisibilityScope = animatedVisibilityScope,
resizeMode = SharedTransitionScope.ResizeMode.RemeasureToBounds,
)
.navigationBarsPadding(),
),
onClick = { navController.navigate(LyricsFetchScreen()) }
) {
Icon(
Expand All @@ -120,7 +119,7 @@ fun HomeScreen(
}
}
},
bottomBar = { Spacer(Modifier) } // fixing broken edge to edge here
bottomBar = { Spacer(Modifier.navigationBarsPadding()) } // fixing broken edge to edge here
) { paddingValues ->
Crossfade(viewModel.allSongs == null, label = "") { loading ->
if (loading)
Expand All @@ -130,7 +129,7 @@ fun HomeScreen(
navController = navController,
viewModel = viewModel,
selected = viewModel.selectedSongs,
paddingValues = paddingValues,
scaffoldPadding = paddingValues,
isBatchDownload = isBatchDownload,
onBatchDownloadState = { onBatchDownload -> isBatchDownload = onBatchDownload },
sharedTransitionScope = sharedTransitionScope,
Expand Down Expand Up @@ -160,7 +159,7 @@ fun HomeScreenLoaded(
selected: SnapshotStateList<String>,
navController: NavHostController,
viewModel: HomeViewModel,
paddingValues: PaddingValues,
scaffoldPadding: PaddingValues,
isBatchDownload: Boolean,
onBatchDownloadState: (isBatchDownload: Boolean) -> Unit,
sharedTransitionScope: SharedTransitionScope,
Expand All @@ -176,11 +175,10 @@ fun HomeScreenLoaded(
}

LazyColumn(
modifier = Modifier
.fillMaxSize()
.padding(paddingValues),
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.CenterHorizontally,
contentPadding = scaffoldPadding
) {
item {
Column(
Expand Down

0 comments on commit ec82954

Please sign in to comment.