Skip to content

Commit

Permalink
Dart format and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StarProxima committed May 6, 2023
1 parent e531c5b commit 16f3698
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 36 deletions.
1 change: 1 addition & 0 deletions lib/features/settings/managers/settings_manager.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
22 changes: 0 additions & 22 deletions lib/features/timetable_page/ui/widgets/timetable_page_header.dart
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion lib/ui/widgets/fade_animated_widget.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'package:flutter/material.dart';

class FadeAnimatedWidget extends StatefulWidget {
Expand Down

0 comments on commit 16f3698

Please sign in to comment.