How to set read more less in Flutter?
2 min readApr 26, 2020
This is explanation of my answer in StackOverflow. To show read more/less our Text Widget will have two states.
- See Less
- See More
See less is easy, As we have to append the clickable text at the end of the string using TextSpan.
TextSpan link = TextSpan(
text: _readMore ? "... read more" : " read less",
style…