-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
날짜 이상하게 나오는 현상 수정, 누락된 체크리스트 삭제 추가 구현
- Loading branch information
Showing
9 changed files
with
166 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
presentation/common/src/main/java/com/dkin/chevit/presentation/common/ext/LocalDateExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.dkin.chevit.presentation.common.ext | ||
|
||
import java.time.LocalDate | ||
import java.time.ZoneId | ||
import java.time.ZoneOffset | ||
|
||
fun LocalDate.unixMillis(): Long { | ||
return atStartOfDay(ZoneId.systemDefault()).toEpochSecond() | ||
return atStartOfDay().toEpochSecond(ZoneOffset.UTC) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...n/java/com/dkin/chevit/presentation/home/contents/user/mylist/ChecklistMoreBottomSheet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package com.dkin.chevit.presentation.home.contents.user.mylist | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.height | ||
import androidx.compose.foundation.layout.width | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.text.style.TextOverflow | ||
import androidx.compose.ui.unit.dp | ||
import com.dkin.chevit.presentation.resource.ChevitBottomsheet | ||
import com.dkin.chevit.presentation.resource.ChevitTheme | ||
import com.dkin.chevit.presentation.resource.icon.ChevitIcon | ||
import com.dkin.chevit.presentation.resource.icon.IconCheckboxCircleFill | ||
|
||
@Composable | ||
fun ChecklistMoreBottomSheet( | ||
title: String, | ||
deleteItem: () -> Unit, | ||
onClose: () -> Unit | ||
) { | ||
ChevitBottomsheet( | ||
modifier = Modifier.fillMaxSize(), | ||
onClickBackground = onClose | ||
) { | ||
Column(modifier = Modifier.fillMaxWidth()) { | ||
Row( | ||
modifier = Modifier.fillMaxWidth(), | ||
verticalAlignment = Alignment.CenterVertically | ||
) { | ||
Image( | ||
imageVector = ChevitIcon.IconCheckboxCircleFill, | ||
contentDescription = "", | ||
) | ||
Spacer(modifier = Modifier.width(4.dp)) | ||
Text( | ||
text = title, | ||
style = ChevitTheme.typhography.headlineMedium.copy(color = ChevitTheme.colors.textPrimary), | ||
overflow = TextOverflow.Ellipsis, | ||
maxLines = 1 | ||
) | ||
} | ||
Spacer(modifier = Modifier.height(4.dp)) | ||
Column( | ||
modifier = Modifier.fillMaxWidth().clickable { deleteItem() } | ||
) { | ||
Spacer(modifier = Modifier.height(16.dp)) | ||
Text( | ||
text = "삭제하기", | ||
style = ChevitTheme.typhography.bodyLarge.copy(color = ChevitTheme.colors.textPrimary), | ||
overflow = TextOverflow.Ellipsis, | ||
maxLines = 1 | ||
) | ||
Spacer(modifier = Modifier.height(16.dp)) | ||
} | ||
Box( | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.height(1.dp) | ||
.background(color = ChevitTheme.colors.grey0) | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters