something

This commit is contained in:
Marton Kiss 2025-01-27 18:21:17 +01:00
parent 4101dc7c17
commit 8b49007cca
9 changed files with 31 additions and 9 deletions

7
check-outdated.sh Normal file
View File

@ -0,0 +1,7 @@
cd refilc && flutter pub outdated && cd ..
cd refilc_kreta_api && flutter pub outdated && cd ..
cd refilc_mobile_ui && flutter pub outdated && cd ..
# cd refilc_desktop_ui && flutter pub upgrade && cd ..
cd refilc_plus && flutter pub outdated && cd ..
echo Outdated version list above.

7
major-upgrade-pub.sh Executable file
View File

@ -0,0 +1,7 @@
cd refilc && flutter pub upgrade --major-versions && cd ..
cd refilc_kreta_api && flutter pub upgrade --major-versions && cd ..
cd refilc_mobile_ui && flutter pub upgrade --major-versions && cd ..
# cd refilc_desktop_ui && flutter pub upgrade && cd ..
cd refilc_plus && flutter pub upgrade --major-versions && cd ..
echo "Upgraded pub (major)."

View File

@ -8,7 +8,9 @@ List<DateWidget> getWidgets(List<Grade> providerGrades) {
List<DateWidget> items = []; List<DateWidget> items = [];
for (var gradeType in GradeType.values) { for (var gradeType in GradeType.values) {
if ([GradeType.midYear, GradeType.unknown, GradeType.levelExam] if ([GradeType.midYear, GradeType.unknown, GradeType.levelExam]
.contains(gradeType)) continue; .contains(gradeType)) {
continue;
}
List<Grade> grades = List<Grade> grades =
providerGrades.where((grade) => grade.type == gradeType).toList(); providerGrades.where((grade) => grade.type == gradeType).toList();

View File

@ -5,7 +5,7 @@
/// Blocky Color Picker /// Blocky Color Picker
library block_colorpicker; library;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:refilc/theme/colors/accent.dart'; import 'package:refilc/theme/colors/accent.dart';

View File

@ -9,7 +9,7 @@
// ignore_for_file: use_build_context_synchronously // ignore_for_file: use_build_context_synchronously
library hsv_picker; library;
import 'package:refilc/models/shared_theme.dart'; import 'package:refilc/models/shared_theme.dart';
import 'package:refilc_mobile_ui/common/custom_snack_bar.dart'; import 'package:refilc_mobile_ui/common/custom_snack_bar.dart';

View File

@ -58,7 +58,9 @@ extension DateFormatUtils on DateTime {
} }
if (now.year == year && if (now.year == year &&
now.month == month && now.month == month &&
now.add(const Duration(days: 1)).day == day) return "Tomorrow".i18n; now.add(const Duration(days: 1)).day == day) {
return "Tomorrow".i18n;
}
String formatString; String formatString;

View File

@ -108,7 +108,9 @@ class TimetableController extends ChangeNotifier {
// Jump to next week on weekends // Jump to next week on weekends
if (skip && if (skip &&
(days?.length ?? 0) > 0 && (days?.length ?? 0) > 0 &&
days!.last.last.end.isBefore(DateTime.now())) return next(context); days!.last.last.end.isBefore(DateTime.now())) {
return next(context);
}
notifyListeners(); notifyListeners();
} }
@ -149,7 +151,9 @@ class TimetableController extends ChangeNotifier {
lessons.sort((a, b) => a.date.compareTo(b.date)); lessons.sort((a, b) => a.date.compareTo(b.date));
for (var lesson in lessons) { for (var lesson in lessons) {
if (days.last.isNotEmpty && if (days.last.isNotEmpty &&
_differentDate(lesson.date, days.last.last.date)) days.add([]); _differentDate(lesson.date, days.last.last.date)) {
days.add([]);
}
days.last.add(lesson); days.last.add(lesson);
} }

View File

@ -17,4 +17,4 @@ dependencies:
uuid: ^4.3.3 uuid: ^4.3.3
dev_dependencies: dev_dependencies:
flutter_lints: ^4.0.0 flutter_lints: ^5.0.0

View File

@ -30,7 +30,7 @@ dependencies:
flutter_markdown: ^0.7.2+1 flutter_markdown: ^0.7.2+1
animations: ^2.0.11 animations: ^2.0.11
animated_list_plus: ^0.5.0 animated_list_plus: ^0.5.0
confetti: ^0.7.0 confetti: ^0.8.0
# live_activities: ^1.9.1+1 # live_activities: ^1.9.1+1
animated_flip_counter: ^0.3.4 animated_flip_counter: ^0.3.4
lottie: ^3.1.0 lottie: ^3.1.0
@ -79,7 +79,7 @@ dependencies:
wakelock_plus: ^1.2.10 wakelock_plus: ^1.2.10
dev_dependencies: dev_dependencies:
flutter_lints: ^4.0.0 flutter_lints: ^5.0.0
flutter: flutter:
uses-material-design: true uses-material-design: true