Skip to content

Commit

Permalink
fix: resolved some minor CI/CD errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMuuo committed Jan 25, 2024
1 parent 3b3494c commit c126b0a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/controllers/notifications_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NotificationsController extends GetxController {
0,
"Happy Birthday",
"We wish you a happy birthday and prosperous new year",
DateTime.now().add(Duration(seconds: 10)));
DateTime.now().add(const Duration(seconds: 10)));

debugPrint("Notifications Done!");
}
Expand Down Expand Up @@ -47,7 +47,7 @@ class NotificationsController extends GetxController {

// If the scheduled date is in the past, add a week to it
if (now.isAfter(scheduledDate)) {
scheduledDate = scheduledDate.add(Duration(days: 7));
scheduledDate = scheduledDate.add(const Duration(days: 7));
}

// Schedule the notification
Expand Down
4 changes: 1 addition & 3 deletions lib/pages/exams_timetable_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ class _ExamTimeTablePageState extends State<ExamTimeTablePage> {
itemBuilder: (context, index) => Padding(
padding: const EdgeInsets.only(bottom: 8),
child: ExamCourseCard(
ontap: () {
print("Hi");
},
ontap: () {},
code: snapshot.data![index]["course_code"]
.toString(),
date: DateFormat('EEE dd/MM/yy').format(
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/login_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:async';

import 'package:academia/constants/common.dart';
import 'package:academia/controllers/login_controller.dart';
import 'package:flutter/cupertino.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/pdf_viewer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class PdfViewer extends StatefulWidget {
}

class _PdfViewerState extends State<PdfViewer> {
late PDFViewController _pdfViewerController;
int currentPage = 0, totalPages = 0;
bool isReady = false;
String errorMessage = '';
Expand Down Expand Up @@ -93,7 +92,7 @@ class _PdfViewerState extends State<PdfViewer> {
currentPage = page!;
});
},
onRender: (_pages) {
onRender: (pages) {
setState(() {});
},
onError: (error) {
Expand Down
1 change: 0 additions & 1 deletion lib/pages/tool_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:academia/controllers/settings_controller.dart';
import 'package:academia/pages/birthday_page.dart';
import 'package:academia/widgets/tool_card.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:intl/intl.dart';
Expand Down

0 comments on commit c126b0a

Please sign in to comment.