File tree 2 files changed +15
-2
lines changed
feature/home/src/main/java/com/yapp
home/component/bottomsheet
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,13 @@ internal fun AlarmListItem(
116
116
) {
117
117
SwipeToDismissBox (
118
118
state = dismissState,
119
+ modifier = modifier,
119
120
enableDismissFromStartToEnd = false ,
120
121
enableDismissFromEndToStart = swipeable,
121
122
gesturesEnabled = swipeable,
122
123
backgroundContent = {
123
124
Box (
124
- modifier = modifier
125
+ modifier = Modifier
125
126
.fillMaxSize()
126
127
.background(OrbitTheme .colors.gray_500)
127
128
.onGloballyPositioned {
Original file line number Diff line number Diff line change 1
1
package com.yapp.home.component.bottomsheet
2
2
3
3
import androidx.annotation.DrawableRes
4
+ import androidx.compose.animation.core.tween
4
5
import androidx.compose.foundation.background
5
6
import androidx.compose.foundation.clickable
6
7
import androidx.compose.foundation.layout.Box
@@ -237,6 +238,12 @@ internal fun AlarmBottomSheetContent(
237
238
key = { _, alarm -> alarm.id },
238
239
) { index, alarm ->
239
240
AlarmListItem (
241
+ modifier = Modifier
242
+ .animateItem(
243
+ fadeInSpec = null ,
244
+ placementSpec = tween(durationMillis = 300 ),
245
+ fadeOutSpec = null ,
246
+ ),
240
247
id = alarm.id,
241
248
repeatDays = alarm.repeatDays,
242
249
isHolidayAlarmOff = alarm.isHolidayAlarmOff,
@@ -259,7 +266,12 @@ internal fun AlarmBottomSheetContent(
259
266
.padding(horizontal = 24 .dp)
260
267
.fillMaxWidth()
261
268
.height(1 .dp)
262
- .background(OrbitTheme .colors.gray_800),
269
+ .background(OrbitTheme .colors.gray_800)
270
+ .animateItem(
271
+ fadeInSpec = null ,
272
+ placementSpec = tween(durationMillis = 300 ),
273
+ fadeOutSpec = null ,
274
+ ),
263
275
)
264
276
}
265
277
}
You can’t perform that action at this time.
0 commit comments