From 597c50bbf63aaf6391fdbf8766a43e7e15d8372e Mon Sep 17 00:00:00 2001 From: Tihanyi Marcell Date: Fri, 3 May 2024 22:42:11 +0200 Subject: [PATCH] Prepare for Production --- refilc_mobile_ui/lib/pages/home/home_page.dart | 2 +- .../lib/pages/home/live_card/live_card.dart | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/refilc_mobile_ui/lib/pages/home/home_page.dart b/refilc_mobile_ui/lib/pages/home/home_page.dart index 8939275..8a7218e 100644 --- a/refilc_mobile_ui/lib/pages/home/home_page.dart +++ b/refilc_mobile_ui/lib/pages/home/home_page.dart @@ -214,7 +214,7 @@ class HomePageState extends State with TickerProviderStateMixin { // TODO: REMOVE IN PRODUCTION BUILD!!! // print(_liveCard.currentState); - _liveCard.currentState = LiveCardState.duringLesson; + // _liveCard.currentState = LiveCardState.duringLesson; return Scaffold( body: Stack( diff --git a/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart b/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart index 3cf6f4b..1d36bd2 100644 --- a/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart +++ b/refilc_mobile_ui/lib/pages/home/live_card/live_card.dart @@ -71,19 +71,19 @@ class LiveCardStateA extends State { // test // TODO: REMOVE IN PRODUCTION BUILD!!! - liveCard.currentState = LiveCardState.duringLesson; + /*liveCard.currentState = LiveCardState.duringLesson; liveCard.currentLesson = Lesson( - date: DateTime.now().add(Duration( + date: DateTime.now().add(const Duration( minutes: 30, )), subject: GradeSubject( category: Category(id: 'asd'), id: 'asd', name: 'Matematika'), lessonIndex: '1', teacher: Teacher(id: 'id', name: 'name'), - start: DateTime.now().subtract(Duration( + start: DateTime.now().subtract(const Duration( minutes: 30, )), - end: DateTime.now().add(Duration( + end: DateTime.now().add(const Duration( minutes: 15, )), homeworkId: 'homeworkId', @@ -92,7 +92,7 @@ class LiveCardStateA extends State { room: 'ABC69', groupName: 'groupName', name: 'name', - ); + );*/ liveCard.nextLesson = liveCard.currentLesson;