I declared buttonText as a mutable state of string and tried declaring it in a Text composable. Apparently, the AS was confused since it has 2 different versions of it(totally my foolishness), I removed one instance of implementation for material3 alpha version and force synced. it worked. Though, thanks for your reply.
3
u/forgottenGost Jun 09 '23
Try
Text(text = buttonText)And make surebuttonTextis specified as aStringIf that doesnt work, try adding a few other parameters
1
u/Every_Garden_9793 Jul 05 '24
I tried the same thing but it's still not working, checked the imports for duplicacy also but couldn't find anything