live_api_notification 1.1.0
live_api_notification: ^1.1.0 copied to clipboard
An intelligent, zero-boilerplate Flutter overlay notification package with automatic REST API and WebSocket payload parsing, context-free triggers, and smooth animations.
Changelog #
All notable changes to live_api_notification will be documented in this file.
1.1.0 Offline Mode & Production Enhancements #
Added #
- Offline Mode — Automatic request queuing with Hive persistence when network is unavailable.
- Exponential Backoff Retry — Configurable retry logic (1s, 2s, 4s, 8s... up to 60s cap) with max retry limits.
- Connectivity Sync — Auto-sync queue when connectivity restored via
connectivity_plus. - Offline-Aware API Calls —
LiveNotification.callApiWithOffline()executes requests and auto-queues on failure. - Queue Management —
getOfflineQueue(),syncOfflineQueue(),clearOfflineQueue(),removeOfflineQueueItem(). - Real-time Queue Updates —
setOfflineQueueChangedCallback()for UI binding. - Offline Configuration —
LiveNotificationOfflineConfigwith full customization (notifications, queue size, persistence).
Changed #
- Updated repository URLs to
https://github.com/samir23bogati/live_api_notification. - Author links: Er. Samir Bogati →
https://www.samirbogati.com.np/, BogatiX →https://github.com/samir23bogati.
Dependencies #
- Added
hive,hive_flutter,connectivity_plus,httpfor offline functionality.
1.0.0 Initial Production Release #
Added #
- Context-free overlay triggers via
LiveNotification.init(navigatorKey: ...). - Universal payload parsing via
fromApiandfromSocketsupporting status codes, standard JSON keys, nested maps, and validation error arrays. - Configurable positioning:
LiveNotificationPosition.topandLiveNotificationPosition.bottom. - Full theme configuration via
LiveNotificationConfig(colors, borders, blur, icons, margins). - Interactive action buttons and pills with callback support.
- Swipe-to-dismiss gestures with smooth vertical slide and fade animations.
- Safe controller management preventing ticker leaks during rapid notifications.
- Comprehensive unit and widget tests.