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",