@@ -197,6 +197,7 @@ fun SelectLocation(
197
197
)
198
198
}
199
199
200
+ @OptIn(ExperimentalFoundationApi ::class )
200
201
@Suppress(" LongMethod" )
201
202
@Composable
202
203
fun SelectLocationScreen (
@@ -331,7 +332,14 @@ fun SelectLocationScreen(
331
332
BottomSheetState .ShowEditCustomListBottomSheet (customList)
332
333
}
333
334
)
334
- item { Spacer (modifier = Modifier .height(Dimens .mediumPadding)) }
335
+ item {
336
+ Spacer (
337
+ modifier =
338
+ Modifier .height(Dimens .mediumPadding)
339
+ .animateItemPlacement()
340
+ .animateContentSize()
341
+ )
342
+ }
335
343
}
336
344
if (state.countries.isNotEmpty()) {
337
345
relayList(
@@ -377,7 +385,10 @@ private fun LazyListScope.customLists(
377
385
ThreeDotCell (
378
386
text = stringResource(R .string.custom_lists),
379
387
onClickDots = onShowCustomListBottomSheet,
380
- modifier = Modifier .testTag(SELECT_LOCATION_CUSTOM_LIST_HEADER_TEST_TAG )
388
+ modifier =
389
+ Modifier .testTag(SELECT_LOCATION_CUSTOM_LIST_HEADER_TEST_TAG )
390
+ .animateItemPlacement()
391
+ .animateContentSize()
381
392
)
382
393
}
383
394
if (customLists.isNotEmpty()) {
@@ -400,11 +411,17 @@ private fun LazyListScope.customLists(
400
411
)
401
412
}
402
413
item {
403
- SwitchComposeSubtitleCell (text = stringResource(R .string.to_add_locations_to_a_list))
414
+ SwitchComposeSubtitleCell (
415
+ text = stringResource(R .string.to_add_locations_to_a_list),
416
+ modifier = Modifier .animateItemPlacement().animateContentSize()
417
+ )
404
418
}
405
419
} else {
406
420
item(contentType = ContentType .EMPTY_TEXT ) {
407
- SwitchComposeSubtitleCell (text = stringResource(R .string.to_create_a_custom_list))
421
+ SwitchComposeSubtitleCell (
422
+ text = stringResource(R .string.to_create_a_custom_list),
423
+ modifier = Modifier .animateItemPlacement().animateContentSize()
424
+ )
408
425
}
409
426
}
410
427
}
@@ -421,6 +438,7 @@ private fun LazyListScope.relayList(
421
438
) {
422
439
HeaderCell (
423
440
text = stringResource(R .string.all_locations),
441
+ modifier = Modifier .animateItemPlacement().animateContentSize()
424
442
)
425
443
}
426
444
items(
0 commit comments