Apply content padding to skeleton view.
This commit is contained in:
parent
80df68c1dc
commit
da9aa7d722
1 changed files with 10 additions and 2 deletions
|
|
@ -74,6 +74,7 @@ fun RoomListContentView(
|
||||||
is RoomListContentState.Skeleton -> {
|
is RoomListContentState.Skeleton -> {
|
||||||
SkeletonView(
|
SkeletonView(
|
||||||
count = contentState.count,
|
count = contentState.count,
|
||||||
|
contentPadding = contentPadding,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
is RoomListContentState.Empty -> {
|
is RoomListContentState.Empty -> {
|
||||||
|
|
@ -102,8 +103,15 @@ fun RoomListContentView(
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun SkeletonView(count: Int, modifier: Modifier = Modifier) {
|
private fun SkeletonView(
|
||||||
LazyColumn(modifier = modifier) {
|
count: Int,
|
||||||
|
contentPadding: PaddingValues,
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
|
) {
|
||||||
|
LazyColumn(
|
||||||
|
modifier = modifier,
|
||||||
|
contentPadding = contentPadding,
|
||||||
|
) {
|
||||||
repeat(count) { index ->
|
repeat(count) { index ->
|
||||||
item {
|
item {
|
||||||
RoomSummaryPlaceholderRow()
|
RoomSummaryPlaceholderRow()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue