fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
2k stars 403 forks source link

Could not find package `flutter_launcher_icons` #603

Open Samxury opened 3 days ago

Samxury commented 3 days ago

:information_source: Info

flutter_launcher_icons: ^0.14.1

:speech_balloon: Description

whenever I run this command,
dart run flutter_launcher_icons:generate

it gives me this error Could not find package flutter_launcher_icons or file flutter_launcher_icons:generate

:scroll: Pubspec.yaml

flutter_launcher_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/public_transport.png"
  min_sdk_android: 24  # Minimum Android SDK version
  adaptive_icon_background: "#ffffff"
  adaptive_icon_foreground: "assets/public_transport.png"
MarkOSullivan94 commented 3 days ago

What happens when you run flutter pub get and then dart run flutter_launcher_icons?