alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

Does we have animateStringAsState in compose in android ?

Does we have animateStringAsState in compose in android ?

There's AnimatedContent

 var text by remember { mutableStateOf ("SOME TEXT") }

AnimatedContent(text){
 // You must use "it", not "text"
 Text(it)
} 

Now, it will animate the value, whenever the text variable changes.

You could manipulate the animation type using the spec parameter it provides.


30 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online