title: How to pass constant font size data from one Widget to another in Flutter
body: <p>The <a href="https://api.flutter.dev/flutter/painting/TextStyle-class.html" rel="nofollow noreferrer"><code>TextStyle</code></a> class in Flutter requires <code>fontSize</code> to be constant.</p>
  <p>Let's say I already created the constant value in widget <code>A</code>. Now I want to pass the value to widget <code>B</code> and inside <code>B</code> I want to use that like following:</p>
  <pre><code>const textStyleInB = TextStyle(fontSize: this.iconWidth);
  </code></pre>
  <p>How can I achieve this?</p>