Do THIS for your Composables

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Learned this the hard way, i had to add it to all of my composables in my project last week :D

mirchm
Автор

Good tip as all of your videos ♥️
But I would be careful with the term "All composables" .. there are moments were you don't want the caller to modify anything about appearance or behavior of a composable. But in 95% of the cases I totally agree 👍

makzimalist
Автор

Can you please do a session on Compose and reusability? We are are migrating our project to Compose and this would definitely help our junior members in team

the_nomadic_ajith
Автор

What is the right thing to do with this Modifier placeholder parameter? Use it in the outer container? Use it for ALL the modifiers? (I have seen tutorial creators do both) It makes sense for the outer container, it seems, but you need to be polite about not permanently forcing things like background color in a way that prevents someone from utilizing the Modifier placeholder parameter.

ubersticks
Автор

I've added it to my live templates

abada-s
Автор

@Composable
fun ComposableComponent(modifier: Modifier = Modifier) { // }

argahutama