Wow devs will have so much to unlearn with Compose...
# compose
g
Wow devs will have so much to unlearn with Compose! The fact that my ‘root layout’ is not in
.fillMaxSize()
by default is giving me headaches. I’m so used to create a layout and it being set to
match_parent
/
match_parent
, it is mind blowing! This piece of gold helps me a lot:
Copy code
fun <http://Modifier.help|Modifier.help>() = drawBackground(Color.Red)
b
I see you're debugging in css style, smart hahaha
😂 2
g
ahah yeah, the main leftover from the time I was doing web, before android (circa 2011)
😆 1
a
I'm trying to remember the reason we didn't set the root of
ComponentActivity.setContent
to
.fillMaxSize()
and my memory is failing me; it might have just been an oversight or lost in a refactor
g
Hmmm… I meant it happens to me every time I make a new “screen”, aka a
Composable
that takes the whole screen / bodyContent of
Scaffold
. Like now the default is
wrap_content
unless told otherwise!