Replace deprecated centerAlignedTopAppBarColors with topAppBarColors
from a recent material3 update: https://developer.android.com/jetpack/androidx/releases/compose-material3#1.4.0-alpha06
This commit is contained in:
@@ -216,7 +216,7 @@ internal fun NiaApp(
|
||||
actionIconContentDescription = stringResource(
|
||||
id = settingsR.string.feature_settings_top_app_bar_action_icon_description,
|
||||
),
|
||||
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(
|
||||
colors = TopAppBarDefaults.topAppBarColors(
|
||||
containerColor = Color.Transparent,
|
||||
),
|
||||
onActionClick = { onTopAppBarActionClick() },
|
||||
|
||||
@@ -45,7 +45,7 @@ fun NiaTopAppBar(
|
||||
actionIcon: ImageVector,
|
||||
actionIconContentDescription: String,
|
||||
modifier: Modifier = Modifier,
|
||||
colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(),
|
||||
colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
|
||||
onNavigationClick: () -> Unit = {},
|
||||
onActionClick: () -> Unit = {},
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user