Skip to content

Commit

Permalink
Add title secondary to sample application (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
oas004 authored Dec 7, 2023
1 parent a4afcbb commit c60b5ad
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
package com.google.android.horologist.materialcomponents

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.google.android.horologist.compose.layout.ScalingLazyColumn
import com.google.android.horologist.compose.layout.ScalingLazyColumnState
import com.google.android.horologist.compose.material.SecondaryTitle
import com.google.android.horologist.compose.material.Title

@Composable
Expand All @@ -33,7 +37,21 @@ internal fun SampleTitleScreen(
modifier = modifier.fillMaxSize(),
) {
item {
Title("Title")
Title(
text = "Title",
)
}
item {
SecondaryTitle(
text = "Title",
)
}
item {
SecondaryTitle(
text = "Title",
icon = Icons.Filled.Add,
iconTint = Color(0xFF946EB1),
)
}
}
}

0 comments on commit c60b5ad

Please sign in to comment.