mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor: Try to mimic ExpandedAppBarLayout for Compose
This commit is contained in:
parent
55fad67223
commit
448c93365a
2 changed files with 627 additions and 2 deletions
|
@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.PaddingValues
|
|||
import androidx.compose.foundation.layout.RowScope
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||
import androidx.compose.material3.LargeTopAppBar
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Text
|
||||
|
@ -28,6 +27,7 @@ import androidx.core.view.WindowInsetsControllerCompat
|
|||
import dev.icerock.moko.resources.compose.stringResource
|
||||
import yokai.i18n.MR
|
||||
import yokai.presentation.component.ToolTipButton
|
||||
import yokai.presentation.core.ExpandedAppBar
|
||||
|
||||
@Composable
|
||||
fun YokaiScaffold(
|
||||
|
@ -78,7 +78,7 @@ fun YokaiScaffold(
|
|||
scrollBehavior = scrollBehavior,
|
||||
actions = actions,
|
||||
)
|
||||
AppBarType.LARGE -> LargeTopAppBar(
|
||||
AppBarType.LARGE -> ExpandedAppBar(
|
||||
title = {
|
||||
Text(text = title)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue