File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
presentation/src/main/java/daily/dayo/presentation/screen/main Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import androidx.compose.material.Icon
1919import androidx.compose.material.Text
2020import androidx.compose.material3.BottomSheetScaffold
2121import androidx.compose.material3.ExperimentalMaterial3Api
22+ import androidx.compose.material3.SnackbarHost
2223import androidx.compose.material3.SnackbarHostState
2324import androidx.compose.runtime.Composable
2425import androidx.compose.runtime.getValue
@@ -75,8 +76,8 @@ internal fun MainScreen(
7576 val currentMemberId = profileViewModel.currentMemberId
7677 val coroutineScope = rememberCoroutineScope()
7778 val noticeViewModel = hiltViewModel<NoticeViewModel >()
78- val snackBarHostState = remember { SnackbarHostState () }
7979
80+ val snackBarHostState = remember { SnackbarHostState () }
8081 var bottomSheetContent by remember { mutableStateOf< (@Composable () -> Unit )? > (null ) }
8182 val bottomSheetState = getBottomSheetDialogState()
8283
@@ -89,7 +90,8 @@ internal fun MainScreen(
8990 bottomSheetContent?.invoke()
9091 }
9192 },
92- sheetPeekHeight = 0 .dp
93+ sheetPeekHeight = 0 .dp,
94+ snackbarHost = { SnackbarHost (hostState = snackBarHostState) }
9395 ) {
9496 Column (modifier = Modifier .navigationBarsPadding()) {
9597 NavHost (
You can’t perform that action at this time.
0 commit comments