Flutter notifications
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/flutter-notifications
Push and local notifications for Flutter using FCM and flutter_local_notifications. Use when integrating push or local notifications in Flutter apps. (triggers: **/*notification*.dart, **/main.dart, FirebaseMessaging, FlutterLocalNotificationsPlugin, FCM, notification, push)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill flutter-notificationsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.3 KB, 211 tokens by cl100k_base, as published. Nobody here has run it
Flutter Notifications
Priority: P1 (OPERATIONAL)
Push and local notifications interactions.
Guidelines
- Stack: Use
firebase_messaging(Push) +flutter_local_notifications(Local/Foreground). - Lifecycle: Handle all 3 states explicitly: Foreground, Background, Terminated.
- Permissions: Prime users with a custom dialog explaining benefits before system request.
- Navigation: Validate notification payload data strictly before navigating.
- Badges: Manually clear iOS app badges when visiting relevant screens.
Anti-Patterns
- No Unconditional Permission: Don't ask on startup without context.
- No Missing State Handlers: Forgetting
getInitialMessage()breaks "open from terminated". - No Forgotten Badge Clear: Leaving notifications un-cleared frustrates users.
- No Direct Navigation: Parsing JSON payloads without validation leads to crashes.
Related Topics
flutter-navigation | mobile-ux-core | firebase/fcm
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.