Are You Doing THIS Modifier Mistake In Jetpack Compose?

preview_player
Показать описание
Follow for more Android & Kotlin tips 🙌
Рекомендации по теме
Комментарии
Автор

Can we have a video getting deep into SideEffects?, what a nightmare they have been for me

moisesvalera
Автор

dude how amazing you are in programming . the way you write codes make me feel the programming is very very easy

tracker_x
Автор

I was able to point out the problem before watching your explanation 😂😅.

Thanks, Philip 🙏. I have learned many Android cool tips from you 😊.

ashaluwalakazeem
Автор

Learned this the hard way XD Nice tip.

ruskiikoshka
Автор

I know that passing a defaulted Modifier is good practice, but this always seemed to me like a very awkward "backdoor" since it is not clear what the caller is expected to modify. There is no clear expectation as opposed to the other function parameters.

ubersticks
Автор

I did exactly this mistake yesterday, and I faced the issue you described

Detonatr
Автор

Great explanation. So, in this case, we should pass the background color as a parameter as well, in order to make the button reusable

eelbaz
Автор

Also, shouldn't modifier be passed at the end with .then(modifier) extension? Modifier is order sensitive, and passing a modifier at the beginning can break effects created by further extensions.

Marcix
Автор

Modifier is supposed to be the first parameter in a composable

ChrisAthanas
Автор

You see that onclick function behind you has been disturbing me for the last 6 hours I didn't know how to implement it since I wanted my cards to be clicked and you have helped
me solve it also its midnight so I can sleep easy tonight so thanks and God bless

erickmutura
Автор

I think we can override the size params from callee

jpdsah
Автор

'mistake' in your videos in not a suitable word :)

purplehazer
Автор

Do we need wrap onclick in remember? Seems like we create new lambda every recompose

pumaelgatosiberian
Автор

I always have a size or height and width parameter in my reusables. I also have a class to calculate size using px, dp, sp or a combination of them

nesletchimaew
Автор

Can you please do a free YouTube course on Android Development with Jetpack Compose? I am sick and tired of using React Native I hate it

UsamaThakurr
Автор

What is that IDE theme? It's beautiful

kskfernando
Автор

This is not a bug its a design. The first time u will have to reuse this component you will just refactor 😂😂😂😂 Stop making trivial stuff sound very serious. None of us get stuff right the first time.

warTag
Автор

dude how amazing you are in programming . the way you write codes make me feel the programming is very very easy

tracker_x