|
|
|
|
@ -2,7 +2,9 @@ package org.xtimms.tokusho.core.components
|
|
|
|
|
|
|
|
|
|
import androidx.compose.foundation.layout.PaddingValues
|
|
|
|
|
import androidx.compose.foundation.layout.WindowInsets
|
|
|
|
|
import androidx.compose.foundation.layout.WindowInsetsSides
|
|
|
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
|
|
|
import androidx.compose.foundation.layout.only
|
|
|
|
|
import androidx.compose.foundation.layout.systemBars
|
|
|
|
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
|
|
|
|
import androidx.compose.material3.Scaffold
|
|
|
|
|
@ -18,7 +20,6 @@ fun ScaffoldWithTopAppBar(
|
|
|
|
|
title: String,
|
|
|
|
|
navigateBack: () -> Unit,
|
|
|
|
|
floatingActionButton: @Composable (() -> Unit) = {},
|
|
|
|
|
contentWindowInsets: WindowInsets = WindowInsets.systemBars,
|
|
|
|
|
content: @Composable (PaddingValues) -> Unit
|
|
|
|
|
) {
|
|
|
|
|
val topAppBarScrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior(
|
|
|
|
|
@ -37,7 +38,8 @@ fun ScaffoldWithTopAppBar(
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
floatingActionButton = floatingActionButton,
|
|
|
|
|
contentWindowInsets = contentWindowInsets,
|
|
|
|
|
contentWindowInsets = WindowInsets.systemBars
|
|
|
|
|
.only(WindowInsetsSides.Horizontal),
|
|
|
|
|
content = content
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|