Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Oct 21, 2024
1 parent 398801b commit fb7540a
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions app/src/main/java/dev/dimension/flare/ui/screen/dm/DMListScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,15 @@ internal fun DMScreenRoute(
)
}
}
}
},
)
}


@Parcelize
private data class DMPaneNavArgs(
val id: String,
) : Parcelable


@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun DMListScreen(
Expand All @@ -134,8 +132,8 @@ private fun DMListScreen(
) { contentPadding ->
RefreshContainer(
modifier =
Modifier
.fillMaxSize(),
Modifier
.fillMaxSize(),
indicatorPadding = contentPadding,
isRefreshing = state.isRefreshing,
onRefresh = state::refresh,
Expand Down Expand Up @@ -164,9 +162,9 @@ private fun DMListScreen(
loadingContent = {
Column(
modifier =
Modifier
.fillMaxSize()
.padding(horizontal = screenHorizontalPadding, vertical = 8.dp),
Modifier
.fillMaxSize()
.padding(horizontal = screenHorizontalPadding, vertical = 8.dp),
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
ItemPlaceHolder()
Expand All @@ -192,10 +190,10 @@ private fun DMListScreen(
itemContent = { item ->
Column(
modifier =
Modifier
.clickable {
onItemClicked.invoke(item)
},
Modifier
.clickable {
onItemClicked.invoke(item)
},
) {
ListComponent(
headlineContent = {
Expand All @@ -217,8 +215,8 @@ private fun DMListScreen(
text = item.user.handle,
style = MaterialTheme.typography.bodySmall,
modifier =
Modifier
.alpha(MediumAlpha),
Modifier
.alpha(MediumAlpha),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Expand All @@ -227,8 +225,8 @@ private fun DMListScreen(
text = item.lastMessage.timestamp.shortTime.localizedShortTime,
style = MaterialTheme.typography.bodySmall,
modifier =
Modifier
.alpha(MediumAlpha),
Modifier
.alpha(MediumAlpha),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Expand All @@ -246,11 +244,11 @@ private fun DMListScreen(
)
},
modifier =
Modifier
.padding(
horizontal = screenHorizontalPadding,
vertical = 8.dp,
),
Modifier
.padding(
horizontal = screenHorizontalPadding,
vertical = 8.dp,
),
)
HorizontalDivider()
}
Expand Down

0 comments on commit fb7540a

Please sign in to comment.