Skip to content

Commit 783f5c8

Browse files
authored
Merge pull request #292 from pedrosax/main
Center TopAppBar snippet to use centerAlignedTopAppBarColor
2 parents 3123402 + cc73f31 commit 783f5c8

File tree

1 file changed

+1
-1
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/components

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/components/AppBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fun CenterAlignedTopAppBarExample() {
204204

205205
topBar = {
206206
CenterAlignedTopAppBar(
207-
colors = TopAppBarDefaults.topAppBarColors(
207+
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(
208208
containerColor = MaterialTheme.colorScheme.primaryContainer,
209209
titleContentColor = MaterialTheme.colorScheme.primary,
210210
),

0 commit comments

Comments
 (0)