title: Flutter : Could not find package "build_runner"
body: <p>I work with <a href="https://docs.hivedb.dev/custom-objects/generate_adapter" rel="noreferrer">Hive Packages</a>, I implement Modularization in my project.
  first i create packages with name <code>network</code> with run command <code>flutter create --template=package network</code>, I reference <a href="https://flutter.dev/docs/development/packages-and-plugins/developing-packages" rel="noreferrer">this</a>.</p>
  <p>This packages include models of my project. after that I create model user, then run command build the model <code>flutter packages pub run build_runner build --delete-conflicting-outputs</code>:</p>
  <pre><code>import 'package:hive/hive.dart';
  
  part 'user_model_hive.g.dart';
  
  @HiveType()
  class UserModelHive extends HiveObject {
    @HiveField(0) 
    DateTime id;
    @HiveField(1)
    String giverName;
    @HiveField(2)
    String pinCodeNumber;
  
    UserModelHive({this.id, this.giverName, this.pinCodeNumber});
  }
  
  </code></pre>
  <p>But I get error like this</p>
  <blockquote>
  <p><code>Could not find package &quot;build_runner&quot;. Did you forget to add a dependency? pub finished with exit code 65</code></p>
  </blockquote>
  <p>I'm sure already include <code>build_runner</code> in my packages <code>network</code>.</p>
  <p><strong>pubspec.yaml</strong></p>
  <pre><code>name: network
  description: A new Flutter package project.
  version: 0.0.1
  author:
  homepage:
  
  environment:
    sdk: &quot;&gt;=2.1.0 &lt;3.0.0&quot;
  
  dependencies:
    flutter:
      sdk: flutter
    hive: ^1.1.1
    hive_flutter: ^0.2.1
  dev_dependencies:
    flutter_test:
      sdk: flutter
    hive_generator: ^0.5.2
    build_runner: ^1.7.2
  
  # For information on the generic Dart part of this file, see the
  # following page: https://dart.dev/tools/pub/pubspec
  
  # The following section is specific to Flutter.
  flutter:
    # To add assets to your package, add an assets section, like this:
    # assets:
    #  - images/a_dot_burr.jpeg
    #  - images/a_dot_ham.jpeg
    #
    # For details regarding assets in packages, see
    # https://flutter.dev/assets-and-images/#from-packages
    #
    # An image asset can refer to one or more resolution-specific &quot;variants&quot;, see
    # https://flutter.dev/assets-and-images/#resolution-aware.
    # To add custom fonts to your package, add a fonts section here,
    # in this &quot;flutter&quot; section. Each entry in this list should have a
    # &quot;family&quot; key with the font family name, and a &quot;fonts&quot; key with a
    # list giving the asset and other descriptors for the font. For
    # example:
    # fonts:
    #   - family: Schyler
    #     fonts:
    #       - asset: fonts/Schyler-Regular.ttf
    #       - asset: fonts/Schyler-Italic.ttf
    #         style: italic
    #   - family: Trajan Pro
    #     fonts:
    #       - asset: fonts/TrajanPro.ttf
    #       - asset: fonts/TrajanPro_Bold.ttf
    #         weight: 700
    #
    # For details regarding fonts in packages, see
    # https://flutter.dev/custom-fonts/#from-packages
  
  </code></pre>
  <p>I'm already use this command but nothing happens:
  <code>flutter packages get</code> &amp; <code>flutter pub get</code></p>
  <p>It's my structure folder if you needed.
  <a href="https://i.stack.imgur.com/lPWaY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lPWaY.png" alt="my structure folder" /></a></p>