flutter_native_splash icon indicating copy to clipboard operation
flutter_native_splash copied to clipboard

Where to add flutter_native_splash in pubspec.yaml file?

Open ibluegreen opened this issue 6 months ago • 1 comments

Hi, this is not an issue or bug report but a clarification request.

Should flutter_native_splash be added in pubspec.yaml under dependencies: or dev_dependencies:?

The docs https://pub.dev/packages/flutter_native_splash say under dependencies. But AI says since the splash screen is generated once and not needed on runtime, it should go under dev_dependencies, which made sense to me, but I wanted to know for sure the right way to do it.

Thanks.

ibluegreen avatar May 11 '26 06:05 ibluegreen

As explained in the readme,

First, add flutter_native_splash as a dependency in your pubspec.yaml file.

dependencies:
  flutter_native_splash: ^2.4.7

...

NOTE: If you do not need to use the preserve() and remove() methods, you can place the flutter_native_splash dependency in the dev_dependencies section of pubspec.yaml.

jonbhanson avatar May 12 '26 12:05 jonbhanson