修正 LocationDetail bottom sheet 隐藏问题
This commit is contained in:
@@ -34,6 +34,7 @@ import androidx.compose.material3.HorizontalDivider
|
|||||||
import androidx.compose.material3.Icon
|
import androidx.compose.material3.Icon
|
||||||
import androidx.compose.material3.IconButton
|
import androidx.compose.material3.IconButton
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
import androidx.compose.material3.SheetState
|
||||||
import androidx.compose.material3.SheetValue
|
import androidx.compose.material3.SheetValue
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.material3.rememberBottomSheetScaffoldState
|
import androidx.compose.material3.rememberBottomSheetScaffoldState
|
||||||
@@ -113,7 +114,13 @@ fun getFeedItems(): List<FeedItem> {
|
|||||||
@Composable
|
@Composable
|
||||||
fun LocationDetail() {
|
fun LocationDetail() {
|
||||||
val scope = rememberCoroutineScope()
|
val scope = rememberCoroutineScope()
|
||||||
val scaffoldState = rememberBottomSheetScaffoldState()
|
val scaffoldState = rememberBottomSheetScaffoldState(
|
||||||
|
SheetState(
|
||||||
|
skipPartiallyExpanded = false,
|
||||||
|
density = LocalDensity.current, initialValue = SheetValue.PartiallyExpanded,
|
||||||
|
skipHiddenState = true
|
||||||
|
)
|
||||||
|
)
|
||||||
val configuration = LocalConfiguration.current
|
val configuration = LocalConfiguration.current
|
||||||
val officialGalleryItems = getOfficialGalleryItems()
|
val officialGalleryItems = getOfficialGalleryItems()
|
||||||
val feedItems = getFeedItems()
|
val feedItems = getFeedItems()
|
||||||
|
|||||||
Reference in New Issue
Block a user