title: Flutter Markdown "Show more" button
body: <p>I use MarkdownBody from flutter_markdown inside a LimitedBox. When pressing a &quot;Show more&quot; button the maxHeight is set to double.infinity and the full text is shown:</p>
  <pre><code>                                             LimitedBox(
                                                  maxHeight:
                                                      showMoreCommentsIds
                                                              .contains(
                                                                  commentId)
                                                          ? double.infinity
                                                          : 100,
                                                  child: Wrap(
                                                    direction:
                                                        Axis.horizontal,
                                                    children: &lt;Widget&gt;[
                                                      MarkdownBody(
                                                        data: showList[index]
                                                            .comment
                                                            .comment,
                                                      )
                                                    ],
                                                  ),
                                                ),
  </code></pre>
  <p>But how can I find out the height of the text and only display the &quot;Show more&quot; button, if it is necessary?</p>