title: Flutter: Correct way to debug widget rebuilds
body: <p>How can I see what is causing my widgets to keep propagating the widget tree? I'm using the Provider package and experiencing a problem where the widgets keep stacking up - for example, if I add a print statement to the homepage:</p>
  
  <pre><code>@override
    Widget build(BuildContext context) {
      print("Home");
  </code></pre>
  
  <p>Then after navigating around the app for a while, if I clear the debug console and load the homepage or any screens below it, I will get multiple "Home" printouts, ie:</p>
  
  <pre><code>flutter: Home
  flutter: Home
  flutter: Home
  flutter: Home
  flutter: Home
  flutter: Home
  </code></pre>
  
  <p>The more I navigate around the app, the more they stack up. What would be the correct way to debug this?</p>