I changed the default flutter logo icon with a custom icon, but ended up messing up the alignment of the contents of the icon and wanted to change it again. I tried giving a new image path (path of the modified icon image) in flutter_icons (in pubspec.yaml file), but it didn't work. I even tried changing the default icon files in the res folder (android->app->source->main->res) using an online icon generator, but that didn't work either. Every time I change the icon files, I will run the commands: flutter pub get and flutter pub run flutter_launcher_icons:main to ensure icon changes are made.
PUBSPEC.YAML file (Old icon): flutter_launcher_icons: ^0.12.0
flutter_icons: android: true ios: true image_path: "assets/icon1.png"
PUBSPEC.YAML file (Icon which I want to use): flutter_launcher_icons: ^0.12.0
flutter_icons: android: true ios: true image_path: "assets/icon_foreground.png"
But despite that, the icon I changed the first time is remains unchanged. I want to change my app icon to the modified image. I won't require the steps to change the icon for iOS app, since the app is designed only for Android as of now. I don't know where I am going wrong. Any help would be appreciated. Thanks in advance !