android_notification_icons
0.0.1, released 3 years ago by cam-inc.dev
Generate Android notification icons from a source image
$ flutter pub add android_notification_iconsWhat it does
This package creates the required Android notification icon assets in the correct density folders. It runs as a Dart CLI tool and writes the resized PNGs into the Android project structure.
AI-written summary of version 0.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need custom notification icons for an Android Flutter app
- You want a quick, automated way to generate all density variants
Skip it when
- You are targeting only iOS or web
- You already use a comprehensive icon generator that covers notification icons
Strengths
- Simple command‑line usage
- No build_runner or code generation required
- Creates all required density folders automatically
Weaknesses
- Android only
- No support for iOS or other platforms
- Limited configuration options
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
```yaml
# pubspec.yaml
dev_dependencies:
android_notification_icons:
android_notification_icons:
image_path: 'assets/ic_notification.png'
icon_name: 'ic_notification'
```
```bash
dart run android_notification_icons
```Alternatives
Packages that do the same job and could replace android_notification_icons.
- flutter_launcher_icons
Generates app launcher icons for multiple platforms, but not notification icons
65Compare
Works with
Packages commonly used together with android_notification_icons: ones it builds on, ones built on it, and its own family.
- json_annotationandroid_notification_icons depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- checked_yamlandroid_notification_icons depends on itProvides checkedYamlDecode to give detailed errors when decoding YAML with json_serializable.
- imageandroid_notification_icons depends on itPure Dart library to load, manipulate, encode, and decode various image formats.