Does it possible to show the `BottomSheetScaffold`...
# compose
m
Does it possible to show the
BottomSheetScaffold
this ways? code in 🧵
Copy code
@OptIn(ExperimentalMaterialApi::class)
fun ComponentActivity.showDialog() {
    setContent {
        // bottom sheet scope, state, etc is omitted
        BottomSheetScaffold(
             // .. omitted
        )
    }
}

// somewhere in our activity/fragment

currentActivity.showDialog()