```MainBody() BottomSheet( ..., content =...
# compose
s
Copy code
MainBody()

BottomSheet(
    ...,
    content = null,
)
vs
Copy code
BottomSheet(
    ...,
    content = MainBody(),
)
I dont see any UI difference though, but what could go wrong by preferring the former?
c
For the former, any `Modifier`s applied by the
BottomSheet
won’t be applied to your
MainBody
.
f
I'm not sure what you are comparing here?
s
Yes I'm well aware of it @chr. Just curious if it might impact from other UI-wise aspects
e
The main differenceI see is in the confusability index of the code. If that is not a mistake, then the confusability (or mind-boggleability or wtfuckability) of the second snippet is much much higher than the first snippet 👍🏾 (above is a joke if thats not immediately clear) I’m sure you’re missing brackets in the second case, right?
Copy code
BottomSheet(
    ...,
    content = { MainBody() },
)