mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 00:37:03 +05:30
Revert "fix: remove visual divider"
It's better with it
This reverts commit 687cb32f7c
.
This commit is contained in:
parent
c79b7114fb
commit
54ec5a4c8d
3 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,7 @@ import androidx.compose.foundation.lazy.LazyListState
|
||||||
import androidx.compose.foundation.lazy.items
|
import androidx.compose.foundation.lazy.items
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.filled.Inbox
|
import androidx.compose.material.icons.filled.Inbox
|
||||||
|
import androidx.compose.material3.HorizontalDivider
|
||||||
import androidx.compose.material3.Icon
|
import androidx.compose.material3.Icon
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
|
@ -54,6 +55,7 @@ fun DatabasePosts(
|
||||||
stickyHeader(contentType = "month-header") { MonthHeader(label = month) }
|
stickyHeader(contentType = "month-header") { MonthHeader(label = month) }
|
||||||
items(items = posts, key = { it.shortId }, contentType = { "LobstersItem" }) { item ->
|
items(items = posts, key = { it.shortId }, contentType = { "LobstersItem" }) { item ->
|
||||||
LobstersListItem(item = item, refresh = {}, postActions = postActions)
|
LobstersListItem(item = item, refresh = {}, postActions = postActions)
|
||||||
|
HorizontalDivider()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.lazy.LazyListState
|
import androidx.compose.foundation.lazy.LazyListState
|
||||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
|
import androidx.compose.material3.HorizontalDivider
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
@ -72,6 +73,7 @@ fun NetworkPosts(
|
||||||
postActions = postActions,
|
postActions = postActions,
|
||||||
refresh = { lazyPagingItems.refresh() },
|
refresh = { lazyPagingItems.refresh() },
|
||||||
)
|
)
|
||||||
|
HorizontalDivider()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lazyPagingItems.loadState.append == LoadState.Loading) {
|
if (lazyPagingItems.loadState.append == LoadState.Loading) {
|
||||||
|
|
|
@ -77,7 +77,7 @@ fun LobstersCard(
|
||||||
refresh()
|
refresh()
|
||||||
}
|
}
|
||||||
.background(MaterialTheme.colorScheme.background)
|
.background(MaterialTheme.colorScheme.background)
|
||||||
.padding(start = 8.dp, bottom = 2.dp)
|
.padding(start = 8.dp)
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue