title: Autoresize Text to fit in Container vertically
body: <p>I want to create an app, that shows sometimes shorter, somertimes longer text in a Container. This container should not change in size, after the widget is build to fit with the size of the screen. The text itself comes from a database and I don't know, how long it can be.</p>
  
  <p>When I print the text in the container, sometimes it fits, sometimes there is many space above and below, when the text is short, or sometime the text overflows and is not visible.</p>
  
  <p>I want, that the text size is automatically changed to fit into the container. <a href="https://i.stack.imgur.com/fCmQJ.png" rel="nofollow noreferrer">Container with overflow</a></p>
  
  <p>The flutter package Auto-Size-Text is not working for me, because I only could resize the text to fit the width or set the maximum line, which I don't know either.</p>
  
  <p>This is my code simplified: </p>
  
  <pre><code>AutoSizeText autotext = AutoSizeText(text, style: style, textAlign: TextAlign.center, presetFontSizes: [25.0,22.0,20.0,18.0], semanticsLabel: text);
  
  
  Container(
    child: autotext
  );
  </code></pre>