title: How to set max lines for Text or RichText?
body: <p>In android, we can set max lines for text view like this:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/text"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"  
      android:maxLines="5" /&gt;
  </code></pre>
  
  <p>However in flutter, we can do that by adding max height constrains, but we need to know what exactly the height is.</p>
  
  <p>Is there any way we can easily specify the max lines for Text/RichText?</p>