Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Jul 30, 2024
2 parents c3f1c0a + 16c69d2 commit 6501fe8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Future<void> initializeEverything() async {
print('Initialization started');
GoRouter.optionURLReflectsImperativeAPIs = true;
WidgetsFlutterBinding.ensureInitialized();
StylesHelper.setMetaThemeColor(Colors.red);
print('Widgets binding initialized');

try {
Expand Down
2 changes: 2 additions & 0 deletions lib/pages/HomePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import 'package:fstapp/pages/TimetablePage.dart';
import 'package:fstapp/pages/UserPage.dart';
import 'package:fstapp/components/timeline/ScheduleTimelineHelper.dart';
import 'package:fstapp/services/NotificationHelper.dart';
import 'package:fstapp/services/StylesHelper.dart';
import 'package:fstapp/services/TimeHelper.dart';
import 'package:fstapp/services/ToastHelper.dart';
import 'package:fstapp/styles/Styles.dart';
Expand Down Expand Up @@ -65,6 +66,7 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
@override
void didChangeDependencies() {
super.didChangeDependencies();
StylesHelper.setMetaThemeColor(AppConfig.backgroundColor);
loadData();
}

Expand Down
2 changes: 2 additions & 0 deletions lib/pages/UserPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import 'package:fstapp/pages/MapPage.dart';
import 'package:fstapp/pages/SettingsPage.dart';
import 'package:fstapp/services/DialogHelper.dart';
import 'package:fstapp/components/timeline/ScheduleTimelineHelper.dart';
import 'package:fstapp/services/StylesHelper.dart';
import 'package:fstapp/services/ToastHelper.dart';
import 'package:fstapp/styles/Styles.dart';
import 'package:fstapp/widgets/ButtonsHelper.dart';
Expand Down Expand Up @@ -401,6 +402,7 @@ class _UserPageState extends State<UserPage> {
@override
void didChangeDependencies() {
super.didChangeDependencies();
StylesHelper.setMetaThemeColor(AppConfig.color1);
if (!DataService.isLoggedIn()) {
RouterService.navigateOccasion(context, LoginPage.ROUTE);
}
Expand Down
5 changes: 0 additions & 5 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@
async function requestNotificationPermission(callback, errorCallback) {
try {
await OneSignal.Notifications.requestPermission()
//var permission = await Notification.requestPermission();
//var granted = permission === "granted";
//if (granted) {
// OneSignal.Notifications.requestPermission();
//}
console.log("Notification permission request sent.");
if (callback) callback(getNotificationPermission());
} catch (error) {
Expand Down

0 comments on commit 6501fe8

Please sign in to comment.