I dont see any UI difference though, but what could go wrong by preferring the former?
c
chr
11/14/2023, 11:03 PM
For the former, any `Modifier`s applied by the
BottomSheet
won’t be applied to your
MainBody
.
f
Fergus Hewson
11/14/2023, 11:37 PM
I'm not sure what you are comparing here?
s
statmark56
11/15/2023, 1:58 AM
Yes I'm well aware of it @chr. Just curious if it might impact from other UI-wise aspects
e
efemoney
11/15/2023, 4:51 PM
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?