mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-22 19:02:12 +00:00
Update: Make TopBar small again
This commit is contained in:
parent
c06ff5c6f8
commit
2f2856134f
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user