title: How to change content of Stateless Widget
body: <p>I'm working on weather forecast app (code same as from previous issue <a href="https://stackoverflow.com/questions/57648842/how-to-make-sliverappbar-listen-to-botomsheet-change">How to make SliverAppBar listen to botomSheet change</a>). </p>
  
  <p>This model worked without errors for changing city, however, when I implemented BottomAppBar navigation (changing daily and hourly forecast), like below, it doesn't update the content anymore - function for getting city works, but CustomScrollView doesn't "redraw" for updated data.</p>
  
  <p><strong>I changed following:</strong></p>
  
  <p><em>Body of Scaffold-class app now loads from list, by index selected in BottomAppBar.</em></p>
  
  <pre class="lang-dart prettyprint-override"><code>body: _children[_currentIndex]
  </code></pre>
  
  <p><em>List</em></p>
  
  <pre class="lang-dart prettyprint-override"><code>final List&lt;Widget&gt; _children = [
      MyScrollView('hourly'),
      MyScrollView('daily')
    ];
  </code></pre>
  
  <p><em>And I put whole CustomScrollView into MyScrollView() class, alltogether with data fetching methods</em></p>
  
  <pre class="lang-dart prettyprint-override"><code>class MyScrollView extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return new CustomScrollView(...)}
    }
  </code></pre>
  
  <p><strong>How to change <em>CustomScrollView</em> after the city is changed?</strong></p>
  
  <p><strong>Edit:</strong>
  After further research, my problem seems, that Stateless Widget cannot change its' State, but as soon as I change <em>MyScrollView</em> to Stateful, it isn't accepted as Scaffold's body.</p>
  
  <p><a href="https://github.com/marobr001/weather_app" rel="nofollow noreferrer">Source Code</a></p>