I'm using the flutter_native_splash package. How do I fix this error?
Pubspec.yaml -
cupertino_icons:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_native_splash:
image: assets/splash.png
color: “6a1b9a”
android: true
fill: true
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
Error:
PS C:\Users\project> flutter pub pub run flutter_native_splash: create
Could not find package "flutter_native_splash". Did you forget to add a dependency?
Add the dependency in dev_dependencies not dependencies
dev_dependencies:
flutter_test:
sdk: flutter
flutter_native_splash: ^0.1.9 //Add this here