diff --git a/check-outdated.sh b/check-outdated.sh new file mode 100644 index 0000000..7282f6a --- /dev/null +++ b/check-outdated.sh @@ -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. diff --git a/major-upgrade-pub.sh b/major-upgrade-pub.sh new file mode 100755 index 0000000..9f5ca35 --- /dev/null +++ b/major-upgrade-pub.sh @@ -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)." diff --git a/refilc/lib/ui/filter/widgets/certifications.dart b/refilc/lib/ui/filter/widgets/certifications.dart index 78f379c..1fd1f70 100644 --- a/refilc/lib/ui/filter/widgets/certifications.dart +++ b/refilc/lib/ui/filter/widgets/certifications.dart @@ -8,7 +8,9 @@ List getWidgets(List providerGrades) { List items = []; for (var gradeType in GradeType.values) { if ([GradeType.midYear, GradeType.unknown, GradeType.levelExam] - .contains(gradeType)) continue; + .contains(gradeType)) { + continue; + } List grades = providerGrades.where((grade) => grade.type == gradeType).toList(); diff --git a/refilc/lib/ui/flutter_colorpicker/block_picker.dart b/refilc/lib/ui/flutter_colorpicker/block_picker.dart index 8236d31..ce16e91 100644 --- a/refilc/lib/ui/flutter_colorpicker/block_picker.dart +++ b/refilc/lib/ui/flutter_colorpicker/block_picker.dart @@ -5,7 +5,7 @@ /// Blocky Color Picker -library block_colorpicker; +library; import 'package:flutter/material.dart'; import 'package:refilc/theme/colors/accent.dart'; diff --git a/refilc/lib/ui/flutter_colorpicker/colorpicker.dart b/refilc/lib/ui/flutter_colorpicker/colorpicker.dart index 58333f9..4a1bd3f 100644 --- a/refilc/lib/ui/flutter_colorpicker/colorpicker.dart +++ b/refilc/lib/ui/flutter_colorpicker/colorpicker.dart @@ -9,7 +9,7 @@ // ignore_for_file: use_build_context_synchronously -library hsv_picker; +library; import 'package:refilc/models/shared_theme.dart'; import 'package:refilc_mobile_ui/common/custom_snack_bar.dart'; diff --git a/refilc/lib/utils/format.dart b/refilc/lib/utils/format.dart index ac69d8c..a88684b 100644 --- a/refilc/lib/utils/format.dart +++ b/refilc/lib/utils/format.dart @@ -58,7 +58,9 @@ extension DateFormatUtils on DateTime { } if (now.year == year && 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; diff --git a/refilc_kreta_api/lib/controllers/timetable_controller.dart b/refilc_kreta_api/lib/controllers/timetable_controller.dart index 575c916..72ad77d 100644 --- a/refilc_kreta_api/lib/controllers/timetable_controller.dart +++ b/refilc_kreta_api/lib/controllers/timetable_controller.dart @@ -108,7 +108,9 @@ class TimetableController extends ChangeNotifier { // Jump to next week on weekends if (skip && (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(); } @@ -149,7 +151,9 @@ class TimetableController extends ChangeNotifier { lessons.sort((a, b) => a.date.compareTo(b.date)); for (var lesson in lessons) { 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); } diff --git a/refilc_kreta_api/pubspec.yaml b/refilc_kreta_api/pubspec.yaml index c0cf589..330a1eb 100644 --- a/refilc_kreta_api/pubspec.yaml +++ b/refilc_kreta_api/pubspec.yaml @@ -17,4 +17,4 @@ dependencies: uuid: ^4.3.3 dev_dependencies: - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 diff --git a/refilc_mobile_ui/pubspec.yaml b/refilc_mobile_ui/pubspec.yaml index dbbb9a7..59df102 100644 --- a/refilc_mobile_ui/pubspec.yaml +++ b/refilc_mobile_ui/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: flutter_markdown: ^0.7.2+1 animations: ^2.0.11 animated_list_plus: ^0.5.0 - confetti: ^0.7.0 + confetti: ^0.8.0 # live_activities: ^1.9.1+1 animated_flip_counter: ^0.3.4 lottie: ^3.1.0 @@ -79,7 +79,7 @@ dependencies: wakelock_plus: ^1.2.10 dev_dependencies: - flutter_lints: ^4.0.0 + flutter_lints: ^5.0.0 flutter: uses-material-design: true