title: How to refresh parent page when action is done in ModalBottomSheet Flutter
body: <p>I am trying to make an eCommerce app using Flutter. When I click on the product it will show a bottom sheet with detailed information of the product. The idea is that once I add the product to the shopping cart, a number will appear on the top of the shopping cart icon detailing the amount of products you have saved on the shopping cart.</p>
  <p><a href="https://i.stack.imgur.com/j7NO6.png" rel="nofollow noreferrer">Shopping cart </a></p>
  <p>Once I click on the save to shopping cart bottom, the bottom sheet will close, however, the parent page does not refresh and it still shows the previous saved amount</p>
  <pre><code>void openBotomSheet(Product product){
    showMaterialModalBottomSheet(
      context: context,
      builder: (context) =&gt; ClientProductsDetailPage(product: product),
  );
  </code></pre>
  <p>I tried using this solution found on the internet, with no luck</p>
  <pre><code>Widget _cardProduct(Product product){ 
    return GestureDetector(
      onTap: ()async{
       await _con.openBotomSheet(product);
       setState((){});
      },
    child: Container( 'Content Here' )
  </code></pre>
  <p>Appreciate any help :)</p>