Skip to content

Commit

Permalink
코드 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
likppi10 committed Nov 22, 2023
1 parent 19909e0 commit fea7991
Showing 1 changed file with 26 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ fun BandalartBottomSheet(
val scope = rememberCoroutineScope()
val bottomSheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
val focusRequester = remember { FocusRequester() }
val focusManager = LocalFocusManager.current
val scrollState = rememberScrollState()

ModalBottomSheet(
onDismissRequest = {
Expand Down Expand Up @@ -192,9 +194,6 @@ fun BandalartBottomSheet(
)
}

val focusManager = LocalFocusManager.current
val scrollState = rememberScrollState()

Column(
modifier = Modifier
.background(White)
Expand Down Expand Up @@ -378,7 +377,7 @@ fun BandalartBottomSheet(
viewModel.dueDateChanged(dueDate = dueDateResult.toString())
viewModel.openDatePicker(flag = openDatePickerPushResult)
},
datePickerScope = rememberCoroutineScope(),
datePickerScope = scope,
datePickerState = rememberModalBottomSheetState(skipPartiallyExpanded = true),
currentDueDate = uiState.cellData.dueDate?.toLocalDateTime() ?: LocalDateTime.now(),
)
Expand Down Expand Up @@ -502,34 +501,30 @@ fun BandalartBottomSheet(
}
Spacer(modifier = Modifier.height(StatusBarHeightDp + NavigationBarHeightDp + 20.dp))
}
when {
scrollState.value > 0 -> {
Column(
modifier = Modifier.background(
brush = Brush.verticalGradient(
colors = listOf(White, Transparent),
),
shape = RectangleShape,
)
.height(77.dp)
.fillMaxWidth(),
) {}
}
if (scrollState.value > 0) {
Column(
modifier = Modifier.background(
brush = Brush.verticalGradient(
colors = listOf(White, Transparent),
),
shape = RectangleShape,
)
.height(77.dp)
.fillMaxWidth(),
) {}
}
when {
scrollState.value < scrollState.maxValue -> {
Column(
modifier = Modifier.background(
brush = Brush.verticalGradient(
colors = listOf(Transparent, White),
),
shape = RectangleShape,
)
.height(77.dp)
.fillMaxWidth()
.align(Alignment.BottomCenter),
) {}
}
if (scrollState.value < scrollState.maxValue) {
Column(
modifier = Modifier.background(
brush = Brush.verticalGradient(
colors = listOf(Transparent, White),
),
shape = RectangleShape,
)
.height(77.dp)
.fillMaxWidth()
.align(Alignment.BottomCenter),
) {}
}
}
}
Expand Down

0 comments on commit fea7991

Please sign in to comment.