title: flutter package can not find classes in package
body: <p>I am trying to create a flutter package.</p>
  <p>Inside Lib(package) folder, I have <code>MY-PACKAGE.dart</code> file. I also have a folder Called <code>src</code> which contains some codes I will import for use in <code>MY-PACKAGE.dart</code>.</p>
  <p>In my <code>pubspec.yaml</code> in <code>Example folder</code> I have added the package like below and run packages get.</p>
  <pre><code>onboardly:
    path: ../  
  
  </code></pre>
  <p>To use my package I do this</p>
  <pre><code>// THERE IS NOT ANY PROBLEM WITH THIS IMPORT STATEMENT
  import 'package:onboardly/onboardly.dart';
  
          OnBoardly(       // THIS CLASS WORKS FINE
            screens: [
               OnBoardlyScreenItem(   // THIS CLASS CAN NOT BE FOUND EVEN THO IT EXISTS IN THE src FOLDER
               image: Image.asset(&quot;assets/loadicon.png&quot;),
               description: Text(&quot;Hello There&quot;),
               ),
            ],
          ),
  </code></pre>
  <p>The problem am facing is the fact that  <code>OnBoardlyScreenItem()</code> which is in the <code>src</code> of the package can not be found.</p>
  <p>I have ran
  <code>flutter packages get</code>
  <code>flutter pub get</code>
  <code>restarted my IDE</code>
  run <code>flutter clean</code></p>
  <p><a href="https://i.stack.imgur.com/lQLDS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lQLDS.png" alt="The File Structure" /></a></p>