Skip to content

Commit

Permalink
[MOD/#214] Scaffold 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Sep 7, 2024
1 parent a451304 commit cdacbbd
Showing 1 changed file with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,22 @@ private fun CalendarScreen(
}
}

Scaffold(
Column(
modifier = modifier,
topBar = {
CalendarTopAppBar(
date = getYearMonthByPage(uiState.currentPage),
isListExpanded = uiState.isListEnabled,
isWeekExpanded = uiState.isWeekEnabled,
onListButtonClicked = onClickListButton,
onMonthNavigationButtonClicked = { direction ->
coroutineScope.launch {
listState.animateScrollToItem(
index = listState.firstVisibleItemIndex + direction,
)
}
){
CalendarTopAppBar(
date = getYearMonthByPage(uiState.currentPage),
isListExpanded = uiState.isListEnabled,
isWeekExpanded = uiState.isWeekEnabled,
onListButtonClicked = onClickListButton,
onMonthNavigationButtonClicked = { direction ->
coroutineScope.launch {
listState.animateScrollToItem(
index = listState.firstVisibleItemIndex + direction,
)
}
)
}
) { paddingValues ->
}
)
ScreenTransition(
targetState = !uiState.isListEnabled,
transitionOne = slideInHorizontally { fullWidth -> -fullWidth } togetherWith
Expand All @@ -115,7 +113,6 @@ private fun CalendarScreen(
Column(
modifier = Modifier
.fillMaxSize()
.padding(top = paddingValues.calculateTopPadding())
) {
WeekDaysHeader()

Expand Down Expand Up @@ -162,7 +159,6 @@ private fun CalendarScreen(
navigateUp = disableListVisibility,
modifier = Modifier
.fillMaxSize()
.padding(top = paddingValues.calculateTopPadding())
)
},
)
Expand Down

0 comments on commit cdacbbd

Please sign in to comment.