title: Flutter pubspec dependency conflict
body: <p>I've a wired problem with resolving dependencies. In my application pubspec I've following lines:</p>
  <pre><code>dependencies:
    yet_another_layout_builder: ^0.1.0
  
  dev_dependencies:
    hive_generator: ^1.1.1
  </code></pre>
  <p>both packages uses <code>analyzer</code> package and <code>flutter pub get</code> reports me an error:</p>
  <pre><code>Because no versions of hive_generator match &gt;1.1.1 &lt;2.0.0 and hive_generator 1.1.1 depends on analyzer &gt;=1.0.0 &lt;3.0.0, hive_generator ^1.1.1 requires analyzer &gt;=1.0.0 &lt;3.0.0.
  
  And because every version of yet_another_layout_builder depends on analyzer ^3.0.0, hive_generator ^1.1.1 is incompatible with yet_another_layout_builder.
  
  So, because testApp depends on both yet_another_layout_builder ^0.1.0 and hive_generator ^1.1.1, version solving failed.
  
  pub get failed (1; So, because testApp depends on both yet_another_layout_builder ^0.1.0 and hive_generator ^1.1.1, version solving failed.)
  
  </code></pre>
  <p>However when I look into github sources for those packages, it looks for me that this error shouldn't happen. For <code>hive_generator</code> <a href="https://github.com/hivedb/hive/blob/master/hive_generator/pubspec.yaml" rel="nofollow noreferrer">pubspec</a> have following restrictions:</p>
  <pre><code>dependencies:
    analyzer: &quot;&gt;=1.0.0 &lt;4.0.0&quot;
  </code></pre>
  <p>and for <code>YetAnotherLayoutBuilder</code> <a href="https://github.com/TheTosters/YetAnotherLayoutBuilder/blob/master/pubspec.yaml" rel="nofollow noreferrer">pubspec</a> have:</p>
  <pre><code>dependencies:
    analyzer: ^3.0.0
  </code></pre>
  <p>So if I understands this notation correctly:</p>
  <ul>
  <li>YetAnotherLayoutBuilder expects analyzer in version &gt;=3.0.0 and &lt;4.0.0</li>
  <li>hive_generator expects analyzer in version &gt;=1.0.0 and &lt;4.0.0</li>
  </ul>
  <p>Any suggestions where I'm mistaken are gladly welcome.</p>