Task #18
closed
Task #19: Ensure Compatibility with Flutter Web
Find Replacement Flutter Web Pacakges
Description
For each Flutter Package that is not compatible with Flutter Web find replacements whcich are supported and add them as note to this issue in order to decide on which implementation to choose.
Updated by Fadi Hussein about 2 months ago
- Parent task set to #19
Updated by Milad Khnefes about 2 months ago
Research Result:
- Notifications: flutter_local_notifications โ awesome_notifications
Web Setup Required:
Add service worker file (web/awesome_notifications_sw.js)
Register worker in web/index.html
Handle permission requests
Flutter Setup Required:
Replace old flutter_local_notifications APIs
- App Restart: flutter_phoenix โ Keep It (No Changes Needed)
Key Insight:
flutter_phoenix is pure Dart (no platform channels)
Uses GlobalKey to rebuild widget tree - works on all platforms
No replacement required
Alternative Approach: Refactor to use state reset instead of app restart (more Flutter-idiomatic)
- Database: sqflite โ drift (formerly moor)
Single API that works on mobile and web
Uses SQLite on Android/iOS via existing sqflite
On web: Uses SQLite compiled to WebAssembly OR IndexedDB
Maintains relational database capabilities
Updated by Milad Khnefes about 2 months ago
ยท Edited
I'll get rid of flutter_launcher_icons since it's not used directly in the dart and flutter code, only a helper terminal util
I'll also use sqlite3 instead of drift, since it's android, ios, and web-compatible already
Updated by Milad Khnefes about 2 months ago
- Status changed from New to Closed