Update firka/lib/ui/phone/screens/home/home_screen.dart

This commit is contained in:
2026-02-23 21:28:17 +01:00
committed by 4831c0
parent 091647dbe4
commit 34475f35b0

View File

@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:io';
import 'package:firka/helpers/api/client/kreta_client.dart';
import 'package:firka/helpers/api/client/kreta_stream.dart';
import 'package:firka/helpers/api/exceptions/token.dart';
@@ -43,8 +42,9 @@ class PageNavData {
HomePage page;
String? subPageParams;
String subjectName;
PageNavData(this.page, this.subPageParams, this.subjectName);
String? subjectId;
String? subjectCategory;
PageNavData(this.page, this.subPageParams, this.subjectName, {this.subjectId, this.subjectCategory});
}
final ValueNotifier<PageNavData> pageNavNotifier =
@@ -986,6 +986,8 @@ class _HomeSubPage extends State<HomeSubPage> {
forcedHomePage = pageNavNotifier.value.page;
subPageData = pageNavNotifier.value.subPageParams;
subjectName = pageNavNotifier.value.subjectName;
subjectId = pageNavNotifier.value.subjectId ?? "";
subjectCategory = pageNavNotifier.value.subjectCategory ?? "";
previousPages.add(homeScreenPage);
homeScreenPage = forcedHomePage!;
globalUpdate.update();