Update: Make TopBar small again

This commit is contained in:
machiav3lli 2022-06-29 03:02:04 +02:00
parent c06ff5c6f8
commit 2f2856134f

View File

@ -13,8 +13,8 @@ import androidx.compose.material.icons.rounded.Close
import androidx.compose.material.icons.rounded.Search import androidx.compose.material.icons.rounded.Search
import androidx.compose.material3.Icon import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton import androidx.compose.material3.IconButton
import androidx.compose.material3.LargeTopAppBar
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.SmallTopAppBar
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.material3.TextField import androidx.compose.material3.TextField
import androidx.compose.material3.TextFieldDefaults import androidx.compose.material3.TextFieldDefaults
@ -47,7 +47,7 @@ fun TopBar(
scrollBehavior: TopAppBarScrollBehavior? = null, scrollBehavior: TopAppBarScrollBehavior? = null,
actions: @Composable (RowScope.() -> Unit) actions: @Composable (RowScope.() -> Unit)
) { ) {
LargeTopAppBar( SmallTopAppBar(
modifier = Modifier.wrapContentHeight(), modifier = Modifier.wrapContentHeight(),
title = { title = {
Text(text = title, style = MaterialTheme.typography.headlineSmall) Text(text = title, style = MaterialTheme.typography.headlineSmall)