@@ -51,7 +51,6 @@ import top.yukonga.miuix.kmp.utils.MiuixPopupUtil.Companion.MiuixPopupHost
5151 * @param floatingActionButtonPosition position of the floating action button.
5252 * @param snackbarHost component to host [Snackbar]s that are pushed to be shown via
5353 * [SnackbarHostState.showSnackbar], typically a [SnackbarHost].
54- * @param enableTopBarBlur whether to enable blur effect on the [TopAppBar].
5554 * @param containerColor the color used for the background of this scaffold. Use [Color.Transparent]
5655 * to have no color.
5756 * @param contentWindowInsets window insets to be passed to [content] slot via [PaddingValues]
@@ -72,8 +71,6 @@ fun Scaffold(
7271 floatingActionButton : @Composable () -> Unit = {},
7372 floatingActionButtonPosition : MiuixFabPosition = MiuixFabPosition .End ,
7473 snackbarHost : @Composable () -> Unit = {},
75- enableTopBarBlur : Boolean = true,
76- enableBottomBarBlur : Boolean = true,
7774 containerColor : Color = MiuixTheme .colorScheme.background,
7875 contentWindowInsets : WindowInsets = WindowInsets .statusBars,
7976 content : @Composable (PaddingValues ) -> Unit
@@ -89,14 +86,10 @@ fun Scaffold(
8986 ) {
9087 ScaffoldLayout (
9188 topBar = {
92- if (enableTopBarBlur) {
93- topBar()
94- }
89+ topBar()
9590 },
9691 bottomBar = {
97- if (enableBottomBarBlur) {
98- bottomBar()
99- }
92+ bottomBar()
10093 },
10194 content = {
10295 content(it)
0 commit comments