Update: Replace deprecated composable

This commit is contained in:
machiav3lli 2022-10-04 02:25:03 +02:00
parent bf19df717a
commit 57ab8eb08f

View File

@ -12,10 +12,10 @@ import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.SmallTopAppBar
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.TopAppBarScrollBehavior
import androidx.compose.runtime.Composable
@ -49,7 +49,7 @@ fun TopBar(
scrollBehavior: TopAppBarScrollBehavior? = null,
actions: @Composable (RowScope.() -> Unit) = {}
) {
SmallTopAppBar(
TopAppBar(
modifier = Modifier.wrapContentHeight(),
title = {
Text(text = title, style = MaterialTheme.typography.headlineSmall)