Skip to content

Commit

Permalink
Adds empty Modifiers to function signatures that had no Modifiers bef…
Browse files Browse the repository at this point in the history
…ore.
  • Loading branch information
thedmail committed Sep 17, 2024
1 parent 8325a2c commit ccf9d11
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ private val randomSizedPhotos = listOf(
)
// [START android_compose_layouts_lazily_load_list]
@Composable
fun MessageList(pager: Pager<Int, Message>) {
fun MessageList(modifier: Modifier,
pager: Pager<Int, Message>) {
val lazyPagingItems = pager.flow.collectAsLazyPagingItems()

LazyColumn {
Expand All @@ -770,7 +771,7 @@ fun MessageList(pager: Pager<Int, Message>) {
}

@Composable
fun MessagePlaceholder() {
fun MessagePlaceholder(modifier: Modifier) {
Box(
Modifier
.fillMaxWidth()
Expand All @@ -781,7 +782,8 @@ fun MessageList(pager: Pager<Int, Message>) {
}

@Composable
fun MessageRow(message: Text) {
fun MessageRow(modifier: Modifier,
message: Text) {
Card(modifier = Modifier.padding(8.dp)) {
Column(
modifier = Modifier.padding(8.dp),
Expand Down

0 comments on commit ccf9d11

Please sign in to comment.