How to set read more less in Flutter?

Prafulla Singh
2 min readApr 26, 2020
read more/less

This is explanation of my answer in StackOverflow. To show read more/less our Text Widget will have two states.

  1. See Less
  2. 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…

--

--