Disables delete draft from swipe from right to left. Only left to right remains available.
This commit is contained in:
@@ -84,7 +84,6 @@ fun SwipeToDeleteContainer(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
|
||||||
@Composable
|
@Composable
|
||||||
fun DismissBackground(dismissState: SwipeToDismissBoxState) {
|
fun DismissBackground(dismissState: SwipeToDismissBoxState) {
|
||||||
val color by animateColorAsState(
|
val color by animateColorAsState(
|
||||||
|
|||||||
+1
-1
@@ -210,7 +210,7 @@ private fun DraftFeedLoaded(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.animateContentSize(),
|
.animateContentSize(),
|
||||||
onStartToEnd = { accountViewModel.delete(item) },
|
onStartToEnd = { accountViewModel.delete(item) },
|
||||||
onEndToStart = { accountViewModel.delete(item) },
|
onEndToStart = { },
|
||||||
) {
|
) {
|
||||||
NoteCompose(
|
NoteCompose(
|
||||||
item,
|
item,
|
||||||
|
|||||||
Reference in New Issue
Block a user