title: The imported library 'package:geolocator/model/position.dart' can't have a part-of directive
body: <p>In my flutter app I have been using these following plugin <a href="https://pub.dartlang.org/packages/permission_handler" rel="nofollow noreferrer">permission_handler</a>, <a href="https://pub.dartlang.org/packages/geolocator" rel="nofollow noreferrer">geolocator</a> and <a href="https://pub.dartlang.org/packages/google_api_availability" rel="nofollow noreferrer">google_api_availibility</a>.
  I could have added this plugin from flutter package <strong>from pubspec.yml</strong>, however, in my app i am using <a href="https://pub.dartlang.org/packages/google_maps_flutter#-readme-tab-" rel="nofollow noreferrer">google_map_flutter</a> plugin which has been using AndroidX support libraries. Due this reason I have added those library locally with some changes to work with AndroidX. So my app structure and pubspecs looks like this.
  <a href="https://i.stack.imgur.com/coGe9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/coGe9.png" alt="enter image description here"></a></p>
  
  <p>So in my app pubspecs.yml</p>
  
  <pre><code>dev_dependencies:
    flutter_test:
      sdk: flutter
  permission_handler:
    path: my_permission_handler
  geolocator:
    path: flutter-geolocator
  </code></pre>
  
  <p>My my_permission_handler's pubspecs.yml</p>
  
  <pre><code>flutter:
   plugin:
     androidPackage: com.baseflow.permissionhandler
     pluginClass: PermissionHandlerPlugin
  </code></pre>
  
  <p>My api_availibility's pubspec.yml</p>
  
  <pre><code>flutter:
    plugin:
      androidPackage: com.baseflow.googleapiavailability
      pluginClass: GoogleApiAvailabilityPlugin
  </code></pre>
  
  <p>My geolocator's pubspec.yml</p>
  
  <pre><code>dependencies:
    meta: "^1.0.5"
    flutter:
      sdk: flutter
    permission_handler:
      path: ../my_permission_handler
    google_api_availability:
      path: ../flutter-google-api-availability
  </code></pre>
  
  <p>Now when in one of the project's classes I tried to import a model class from geolocator like this
  <a href="https://i.stack.imgur.com/Lv0Ia.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lv0Ia.png" alt="enter image description here"></a></p>
  
  <p>but it shows this error <strong>The imported library 'package:geolocator/model/position.dart' can't have a part-of directive</strong></p>
  
  <p>I have no idea what I'm doing wrong here, please help me.</p>