You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Results in:
"Your flutter_native_splash section contains android_12:icon_background_color_dark but does not contain a color_dark or a background_image_dark."
To Reproduce
Copy config above and: flutter pub run flutter_native_splash:create
if (android12Config.containsKey('image_dark') &&
!config.containsKey('color_dark') &&
!config.containsKey('icon_background_color_dark')) {
print(
'Your `flutter_native_splash` section contains '
'`android_12:icon_background_color_dark` but does not contain a '
'`color_dark` or a `background_image_dark`.',
);
exit(1);
}
It's looking for a icon_background_color_dark config in the top level, but there is no such config, it is under the android_12 namespace. Second, the error message is wrong (most likely copied from the first check just above).
I am not exactly sure what this check is supposed to ensure though.
The text was updated successfully, but these errors were encountered:
Hi @jonbhanson ,
We are also facing the same issue. Is there any work around now to resolve this issue until you provide permanent fix
Thank you
Sureace
Describe the bug
Incorrect error message check when trying to set android_12
image_dark
value.The following configuration:
Results in:
"Your
flutter_native_splash
section containsandroid_12:icon_background_color_dark
but does not contain acolor_dark
or abackground_image_dark
."To Reproduce
Copy config above and:
flutter pub run flutter_native_splash:create
Expected behavior
No error is reported.
Additional context
Having a look at the code, this sections looks wrong (https://github.com/jonbhanson/flutter_native_splash/blob/master/lib/cli_commands.dart l309):
It's looking for a
icon_background_color_dark
config in the top level, but there is no such config, it is under theandroid_12
namespace. Second, the error message is wrong (most likely copied from the first check just above).I am not exactly sure what this check is supposed to ensure though.
The text was updated successfully, but these errors were encountered: