Added Notification Bridge.

Added an onboarding screen.
Fixed problem wherebottom bar blocked sending message.
added a option to go to instagram's settings page in our settings page.
added a notifications icon in bottombar.
Other few Improvements and Bug fixes.
This commit is contained in:
Ujwal
2026-02-23 11:37:15 +05:45
parent e23731d9e8
commit 878e625f0e
22 changed files with 726 additions and 78 deletions
+8
View File
@@ -2,6 +2,7 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:intl/intl.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'notification_service.dart';
/// Manages all session logic for FocusGram:
///
@@ -308,6 +309,13 @@ class SessionManager extends ChangeNotifier {
_lastSessionEnd = DateTime.now();
_prefs?.setInt(_keySessionExpiry, 0);
_prefs?.setInt(_keyLastSessionEnd, _lastSessionEnd!.millisecondsSinceEpoch);
// Alert User
NotificationService().showNotification(
id: 999,
title: 'Session Ended',
body: 'Your Reel session has expired. Time to focus!',
);
}
// ── Reel session API ───────────────────────────────────────