Hello. Why is the state changing from `Hidden` to ...
# compose
w
Hello. Why is the state changing from
Hidden
to
PartiallyExpanded
before touching/doing anything? Bug? (Material3 alpha10)
Copy code
val scaffoldState1 = rememberBottomSheetScaffoldState(
    bottomSheetState = rememberStandardBottomSheetState(
      initialValue = Hidden,
      skipHiddenState = false
    )
  )
  println("why the state changing? ${scaffoldState1.bottomSheetState.currentValue}")

  BottomSheetScaffold(
    scaffoldState = scaffoldState1,
    sheetContent = {}
  ) {}
Copy code
Logcat:
System.out              app.debug  I  why the state changing? Hidden
System.out              app.debug  I  why the state changing? PartiallyExpanded
⁉️ 3
c
I had to separate them into two seperate vals
Copy code
val bottomSheetState = rememberStandardBottomSheetState(initialValue = SheetValue.Hidden, skipHiddenState = false)
val scaffoldState = rememberBottomSheetScaffoldState(bottomSheetState = bottomSheetState)
However, it's a mute point, considering padding values aren't correct when the sheet is hidden anyways, so it's pretty much unusable