Thank you! Now I know usePlatformDefaultWidth due to this video. One question please: is it possible to change overlay? I want to make it red with alpha 0.8F
As far as I know there is no native solution for that. You need to provide a work around for example make the Dialog or a screencomposable fill max size of your screen with desired 0.8 Alpha background and then only use a card in the center for your actual content
Thanks mahn. I'm happy I was able to implement that in my app
Thank you for this man saved me !!
Thank you this is very very good video
Hello! Why did you close the project?
Thank you! Now I know usePlatformDefaultWidth due to this video.
One question please: is it possible to change overlay? I want to make it red with alpha 0.8F
Do you mean the dark background around the dialog ?
@@kapps7407 Yes)
As far as I know there is no native solution for that. You need to provide a work around for example make the Dialog or a screencomposable fill max size of your screen with desired 0.8 Alpha background and then only use a card in the center for your actual content
@@kapps7407 it's a good idea! Thank you, will try this solution
Thank u brother
if in dialog i have textfield. how can i pass the text entered by user into viewmodel.someMethod(text)?
Use a lamb function. You invoke it inside the dialog and process it inside the screen where you have reference to your ViewModel.
Excelente información
43rd...Thanks
android compose development is a joke, AlertDialog, renders totally different on different devices? to the point that it would be flagged as a bug!
thanx a lot bro , that help too much 🤍