diff --git a/lib/features/settings/managers/settings_manager.dart b/lib/features/settings/managers/settings_manager.dart index e69de29..8b13789 100644 --- a/lib/features/settings/managers/settings_manager.dart +++ b/lib/features/settings/managers/settings_manager.dart @@ -0,0 +1 @@ + diff --git a/lib/features/timetable_page/features/lesson_card/ui/lesson_card.dart b/lib/features/timetable_page/features/lesson_card/ui/lesson_card.dart index c4da686..be64194 100644 --- a/lib/features/timetable_page/features/lesson_card/ui/lesson_card.dart +++ b/lib/features/timetable_page/features/lesson_card/ui/lesson_card.dart @@ -2,7 +2,6 @@ import 'dart:math'; import 'package:cube_system/features/settings/state_holders/app_settings_state_holder.dart'; import 'package:cube_system/features/timetable_page/features/lesson_card/ui/widgets/recess_card.dart'; -import 'package:cube_system/features/timetable_page/managers/timetable_page_manager.dart'; import 'package:cube_system/features/timetable_page/state_holders/selected_timetable.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -50,7 +49,6 @@ class LessonCard extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final manager = ref.watch(timetablePageManager); return ProviderScope( overrides: [ _lessonInLessonCard.overrideWithValue(lesson), diff --git a/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel.dart b/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel.dart index 3b89ef1..80ef88d 100644 --- a/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel.dart +++ b/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel.dart @@ -15,15 +15,6 @@ class LessonCardInfoPanel extends ConsumerWidget { final isCancelled = lesson.isCancelled; - final currentLesson = ref.watch(currentLessonStateHolder); - - final equelNumber = lesson.number == currentLesson?.number; - - final equelStartDateTime = lesson.dateTimings.startDateTime == - currentLesson?.dateTimings.startDateTime; - - final isActiveLessons = equelNumber && equelStartDateTime; - // final isCollision = _random.nextInt(100) < 25; // final isRemotely = _random.nextInt(100) < 25; diff --git a/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel_time_to_end.dart b/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel_time_to_end.dart index 6c29248..c82040b 100644 --- a/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel_time_to_end.dart +++ b/lib/features/timetable_page/features/lesson_card/ui/widgets/info_panel/lesson_card_info_panel_time_to_end.dart @@ -40,7 +40,7 @@ class LessonCardInfoPanelTimeToEnd extends ConsumerWidget { } class _LessonCardInfoPanelTimeToEndText extends ConsumerWidget { - const _LessonCardInfoPanelTimeToEndText({super.key}); + const _LessonCardInfoPanelTimeToEndText(); @override Widget build(BuildContext context, WidgetRef ref) { diff --git a/lib/features/timetable_page/ui/widgets/timetable_page_header.dart b/lib/features/timetable_page/ui/widgets/timetable_page_header.dart index d9a9f76..fc1603d 100644 --- a/lib/features/timetable_page/ui/widgets/timetable_page_header.dart +++ b/lib/features/timetable_page/ui/widgets/timetable_page_header.dart @@ -1,36 +1,14 @@ -import 'package:cube_system/features/timetable_page/features/week_timeline/state_holders/week_timeline_shown_week_date.dart'; -import 'package:cube_system/features/timetable_page/managers/timetable_page_manager.dart'; -import 'package:cube_system/features/date_time_contol/state_holders/current_date_time_state_holders.dart'; import 'package:cube_system/features/timetable_page/ui/widgets/timetable_page_header_back_button.dart'; import 'package:cube_system/features/timetable_page/ui/widgets/timetable_page_header_date.dart'; import 'package:cube_system/features/timetable_page/ui/widgets/timetable_page_header_timetable_info.dart'; -import 'package:cube_system/core/extensions.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:cube_system/features/timetable_page/features/week_timeline/providers/week_timeline_offset_back_button_direction_provider.dart'; - class TimetablePageHeader extends ConsumerWidget { const TimetablePageHeader({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { - final manager = ref.watch(timetablePageManager); - - final date = ref.watch(currentDate); - final weekDate = ref.watch(weekTimelineShownWeekDate); - - final weekOffsetButton = - ref.watch(weekTimelineOffsetBackButtonDirectionProvider); - - final String weekLabel; - - if (weekDate.weekNumber % 2 == 1) { - weekLabel = 'Числитель'; - } else { - weekLabel = 'Знаменатель'; - } - return SizedBox( height: 62, child: Row( diff --git a/lib/features/timetable_search_page/state_holders/timetable_search_page_timetables.dart b/lib/features/timetable_search_page/state_holders/timetable_search_page_timetables.dart index 9ff51e7..d9b1e22 100644 --- a/lib/features/timetable_search_page/state_holders/timetable_search_page_timetables.dart +++ b/lib/features/timetable_search_page/state_holders/timetable_search_page_timetables.dart @@ -1,4 +1,3 @@ -import 'package:cube_system/models/timetable/timetable_info.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:cube_system/features/timetable_search_page/models/timetable_search_info.dart'; diff --git a/lib/ui/widgets/fade_animated_widget.dart b/lib/ui/widgets/fade_animated_widget.dart index 08f9be5..e2a72ef 100644 --- a/lib/ui/widgets/fade_animated_widget.dart +++ b/lib/ui/widgets/fade_animated_widget.dart @@ -1,4 +1,3 @@ - import 'package:flutter/material.dart'; class FadeAnimatedWidget extends StatefulWidget {