clean-code-dev / animated_splash_screen

The easiest way to create your animated splash screen in a fully customizable way.
MIT License
112 stars 25 forks source link

Using your example, I am getting Null Check Operator used on a null value #19

Open jeremiahsherrill opened 3 years ago

jeremiahsherrill commented 3 years ago
════════ Exception caught by widgets library ═══════════════════════════════════
Null check operator used on a null value
The relevant error-causing widget was
MaterialApp
lib\main.dart:10

[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 2.0.3 at C:\tools\flutter
    • Framework revision 4d7946a68d (10 days ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at C:\Users\jeremiah\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.54.3)
    • VS Code at C:\Users\jeremiah\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.20.0

[√] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)                  • edge          • web-javascript • Microsoft Edge 89.0.774.57
jeremiahsherrill commented 3 years ago

Because animated_splash_screen 1.1.0 depends on page_transition 2.0.1-nullsafety.0 and no versions of animated_splash_screen match >1.1.0 <2.0.0, animated_splash_screen ^1.1.0 requires page_transition 2.0.1-nullsafety.0.

So even using page_transition: ^2.0.1-nullsafety.0 it still gives the same error

DarkbyteAT commented 3 years ago

I'm having the same issue

sumitsharansatsangi commented 3 years ago

I am also facing the same issue. I resolved it by removing the page transition field from it. Although it is not a perfect solution because the page transition has gone.

JoelFickson commented 3 years ago

I have had the same issue, and the solution at this point is to remove page_transition.

jeremiahsherrill commented 3 years ago

It's the only way to fix it that I have found. It would be nice if the creator would come up with a solution or just go ahead and remove that feature.

onursahindur commented 3 years ago

Same issue here

Flutter 2.0.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision adc687823a (9 days ago) • 2021-04-16 09:40:20 -0700 Engine • revision b09f014e96 Tools • Dart 2.12.3

uki-hub commented 3 years ago

Same issue here

Flutter 2.2.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision b22742018b (7 days ago) • 2021-05-14 19:12:57 -0700 Engine • revision a9d88a4d18 Tools • Dart 2.13.0

Jackjun724 commented 3 years ago

i don't know why, some of the PageTransitionType will work expect. I choose use PageTransitionType.fade, hope help for you