A command-line tool which simplifies the task of updating your Android flavor push notification icons.
Add Android Push Notification Icons to dependencies.
dev_dependencies:
android_push_notification_icons:
# path: ../android_push_notification_icons
git:
url: https://github.com/phellowseven/android_push_notification_icons.git
Generate a 1024x1024px icon with transparent background, put it in assets/app_icon
and run the dev_dependency android_push_notification_icons:
Create a configuration file (if not already existing) in scripts/flavored_pubspec/flavor
- '<flavor name>.yaml'
- e.g. 'test.yaml'
- the flavor name has to relate to the actual flavor
Add the icon-path in the associated configuration file
android_notification_icons:
image_path: "assets/icon/icon.png"
Generate the icons for all flavors:
flutter pub run android_push_notification_icons:main -a
Generate the icons for specific flavor:
flutter pub run android_push_notification_icons:main -f <flavor name>
- e.g. 'flutter pub run android_push_notification_icons:main -f test'
- If you change the folder location of the '<flavor name>.yaml'-file you have to adapt the file path in the library ('android_push_notification_icons') as well.