-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad state: No element error while running flutter pub run flutter_native_splash:create #136
Comments
What version of the package are you running? Are you sure that you ran the command It looks like maybe your LaunchScreen.storyboard has been modified. Can you post a copy of this file? |
Same issue here. I am running version 0.3.0 since I'm still on flutter 1.22.4. Output is:
Attaching my LaunchScreen.storyboard file. |
@yanivshaked I see that in your LaunchScreen.storyboard, the |
I will add a better error message so it is clear that the problem is that the |
You are correct - I renamed the launch image name to solve iOS spring board caching issues. I will rename it back and post the results. |
Describe the bug
I'm trying to run flutter_native_splash:create. The yaml file consist only color setting:
flutter_native_splash: color: "#489FB5"
Expected behavior
Expected that the splash is generated for both platforms
Device (please complete the following information):
Additional context
Error stacktrace:
Restoring Flutter's default white native splash screen... [Android] Updating android/app/src/main/res/drawable/launch_background.xml with splash image path [Android] Updating android/app/src/main/res/values/colors.xml with color for splash screen background [Android] Updating styles.xml with full screen mode setting [iOS] Updating LaunchScreen.storyboard with width, and height Unhandled exception: Bad state: No element #0 Iterable.firstWhere (dart:core/iterable.dart:516:5) #1 _updateLaunchScreenStoryboard (package:flutter_native_splash/ios.dart:139:63) #2 _applyLaunchScreenStoryboard (package:flutter_native_splash/ios.dart:107:12) #3 _createiOSSplash (package:flutter_native_splash/ios.dart:66:9) <asynchronous suspension> #4 tryCreateSplashByConfig (package:flutter_native_splash/supported_platform.dart:61:5) <asynchronous suspension> #5 tryRemoveSplash (package:flutter_native_splash/supported_platform.dart:33:3) <asynchronous suspension> #6 removeSplash (package:flutter_native_splash/flutter_native_splash.dart:27:3) <asynchronous suspension> pub finished with exit code 255
The text was updated successfully, but these errors were encountered: