title: How to auto refresh previous page (first page) using flutter_bloc in Flutter
body: <blockquote>
    <p>SCENARIO</p>
  </blockquote>
  
  <p>There are two pages, first page is HomePage where it fetch the api data automatically with the help of flutter_bloc package. In the homepage (first page) there is also a button which goes to second page (Settings Page) with the help of this code <code>Navigator.push(context, MaterialPageRoute(builder: (BuildContext context) =&gt; SettingsPage()));</code>. In the Second page there are 3 radiobuttons and one button at the bottom (Button name is Save). And when i click on save button it goes back to homepage with the help of this code <code>Navigator.pop(context);</code></p>
  
  <blockquote>
    <p>QUESTION</p>
  </blockquote>
  
  <p>When i select any of the radiobutton and click on button at the bottom, how do i refresh or rebuild the homepage and fetch the api data again.</p>