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"
Asked
Active
Viewed 1,537 times
0

jasmine
- 149
- 13
-
Hope this will help https://stackoverflow.com/q/65949032/2804581 – Dinesh Nagarajan Aug 29 '21 at 03:47
-
no, I already seen that and that is for material package – jasmine Aug 29 '21 at 03:51
-
can you add your flutter version and the target platform you are trying to run. – Dinesh Nagarajan Aug 29 '21 at 03:52
-
Flutter 2.2.3 • channel stable and android emulator - android 11.0 – jasmine Aug 29 '21 at 03:55
-
Can you share the version specified In your project pubspec.yaml – Dinesh Nagarajan Aug 29 '21 at 03:59
-
please check the image i added just now – jasmine Aug 29 '21 at 04:06
-
Please provide enough code so others can better understand or reproduce the problem. – Community Sep 01 '21 at 00:31
1 Answers
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
-
-
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