https://kotlinlang.org logo
#compose
Title
# compose
w

why

10/22/2023, 1:53 PM
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
⁉️ 2
2 Views