title: How to "refresh" dependency packages with main project in Flutter?
body: <p>I am new to flutter development. I am trying to separate my code into multiple local packages as dependencies. Here's my current project structure:</p>
  <p>/packages/<code>commons</code>: a package containing common widgets &amp; utility functions</p>
  <p>/packages/<code>fruits</code>: a package containing screens about fruits (depends upon: <code>commons</code>)</p>
  <p>/<code>main</code>: depends upon <code>commons</code> &amp; <code>fruits</code></p>
  <p>Whenever I make a dependency-change¹ in <code>commons</code> package that affects <code>fruits</code> package, I have to execute <code>flutter pub get</code> in three folders(for <code>commons</code>, <code>fruits</code> and main-project) to be able to run code.</p>
  <p>Is there any way to reduce this process to a single &quot;refresh&quot; click?</p>
  <hr />
  <ol>
  <li>Example in <code>commons</code>:</li>
  </ol>
  <pre><code>flutter pub add fluro
  flutter pub get
  </code></pre>