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

galex

07/31/2020, 6:28 PM
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

Ben

07/31/2020, 6:53 PM
I see you're debugging in css style, smart hahaha
😂 2
g

galex

07/31/2020, 7:01 PM
ahah yeah, the main leftover from the time I was doing web, before android (circa 2011)
😆 1
a

Adam Powell

07/31/2020, 9:45 PM
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

galex

08/01/2020, 6:37 AM
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!