diff --git a/lib/controllers/notifications_controller.dart b/lib/controllers/notifications_controller.dart index b0d0d70..6bc7259 100644 --- a/lib/controllers/notifications_controller.dart +++ b/lib/controllers/notifications_controller.dart @@ -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!"); } @@ -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 diff --git a/lib/pages/exams_timetable_page.dart b/lib/pages/exams_timetable_page.dart index 3946783..7c6eb92 100644 --- a/lib/pages/exams_timetable_page.dart +++ b/lib/pages/exams_timetable_page.dart @@ -100,9 +100,7 @@ class _ExamTimeTablePageState extends State { 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( diff --git a/lib/pages/login_page.dart b/lib/pages/login_page.dart index 8a5a9b4..d49df56 100644 --- a/lib/pages/login_page.dart +++ b/lib/pages/login_page.dart @@ -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'; diff --git a/lib/pages/pdf_viewer.dart b/lib/pages/pdf_viewer.dart index bf31e1e..a9d02eb 100644 --- a/lib/pages/pdf_viewer.dart +++ b/lib/pages/pdf_viewer.dart @@ -18,7 +18,6 @@ class PdfViewer extends StatefulWidget { } class _PdfViewerState extends State { - late PDFViewController _pdfViewerController; int currentPage = 0, totalPages = 0; bool isReady = false; String errorMessage = ''; @@ -93,7 +92,7 @@ class _PdfViewerState extends State { currentPage = page!; }); }, - onRender: (_pages) { + onRender: (pages) { setState(() {}); }, onError: (error) { diff --git a/lib/pages/tool_page.dart b/lib/pages/tool_page.dart index d5b6bdf..b05cde8 100644 --- a/lib/pages/tool_page.dart +++ b/lib/pages/tool_page.dart @@ -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';