0

how to resolve this error of null safe library in splash screen even though I have added dependency most recent one i.e "splashscreen: ^1.3.5" enter image description here

enter image description here

jasmine
  • 149
  • 13

1 Answers1

0

To import a package without null safety support reduce your flutter version in pubspec.yaml

Replace environment with bellow version

  environment:
    sdk: ">=2.06.0 <3.0.0"

Note: This is one way to use an external package without null safety support. If it's an existing project check your dependencies for null safety support before migrating.

Dinesh Nagarajan
  • 1,063
  • 2
  • 10
  • 22
  • how will it affect my project without null safety support – jasmine Aug 29 '21 at 04:09
  • It's just a process of upgrading to the latest version. If you want the project to be up to date choose packages that provide regular updates or else start creating your own solution for the package or find an updated package. It's completely the developer's choice. Only staying up to date with the version and coding standard is the impact for the developer. – Dinesh Nagarajan Aug 29 '21 at 04:13