title: The library 'package:splashscreen/splashscreen.dart' is legacy, and should not be imported into a null safe library
body: <p>The imports I am using:</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:splashscreen/splashscreen.dart';
  import 'package:imagetotext/homePage.dart';
  </code></pre>
  <p>However, the linter is giving me the following warning:</p>
  <pre><code>The library 'package:splashscreen/splashscreen.dart'' is legacy, and should not be imported into a null safe library. Try migrating the imported library. import_of_legacy_library_into_null_safe
  </code></pre>
  <p>The dependencies I am using:</p>
  <pre><code>  cupertino_icons: ^1.0.3
    splashscreen: ^1.3.3
  </code></pre>
  <p><a href="https://i.stack.imgur.com/gbcbG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gbcbG.png" alt="error image" /></a></p>
  <p><a href="https://i.stack.imgur.com/jF6fj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jF6fj.png" alt="problem" /></a></p>