I wanted to change my app's Launcher Icon using the flutter icons launcher package like
dev_dependencies:
flutter_launcher_icons: "^0.7.3"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon.png"
But then i get an error of conflicting package definitions for " flutter_icons: " since the package flutter icons uses flutter_icons:
definition too as follow
dependencies:
flutter_icons: ^1.1.0
Is there a way of using the 2 packages in the same project?
Move your second flutter_icons: one space back and you're good to go.
In your code, you are doing like this
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.9.0
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/logo.png"
You should do it like this
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.9.0
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/logo.png"
Note: In the above question, you write it exactly fine but in your real code you write it wrong.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.