jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.28k stars 200 forks source link

Flutter Create Splash Error #670

Closed ifoxbr closed 2 months ago

ifoxbr commented 2 months ago

Hello

Need help with your package. flutter_native_splash

Search Google, but did not find solution

When I execute: dart pub run flutter_native_splash:create

I receive this error: The parameter "flutter_launcher_icons" was found in your flutter_native_splash config, but "flutter_launcher_icons" is not a valid flutter_native_splash parameter.

Attached yaml file

Regards yaml.txt

jonbhanson commented 2 months ago

The text 'flutter_launcher_icons' does not appear in the config file you have attached, so the package is finding that text from somewhere else. Are there other yaml files in your apps files?

ifoxbr commented 2 months ago

Sorry... attached FULL yaml file.

fullyamlfile.txt

jonbhanson commented 2 months ago

In this configuration, flutter_launcher_icons: ^0.13.1 is a child of the flutter_native_splash section because it is under that section and indented two spaces. Instead it should be placed under the dev_dependencies section.

ifoxbr commented 2 months ago

I did not know that... This solved. thank you very much

dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^3.0.1 flutter_launcher_icons: ^0.13.1 flutter_native_splash: ^2.3.2

jonbhanson commented 2 months ago

You're welcome.