Where to add flutter_native_splash in pubspec.yaml file?
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.
As explained in the readme,
First, add
flutter_native_splashas a dependency in your pubspec.yaml file.dependencies: flutter_native_splash: ^2.4.7...
NOTE: If you do not need to use the
preserve()andremove()methods, you can place theflutter_native_splashdependency in thedev_dependenciessection ofpubspec.yaml.