From 774a0b14cf439a9a01ed7dc5475059ade1d43941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carvalho?= Date: Tue, 24 May 2022 14:03:46 +0100 Subject: [PATCH] Deleted some files --- lib/model/Course.dart | 24 ------------------- lib/model/CurricularUnit.dart | 27 ---------------------- lib/model/lecture.dart | 40 -------------------------------- lib/model/profile.dart | 17 -------------- lib/view/LoginPageView.dart | 43 ----------------------------------- 5 files changed, 151 deletions(-) delete mode 100644 lib/model/Course.dart delete mode 100644 lib/model/CurricularUnit.dart delete mode 100644 lib/model/lecture.dart delete mode 100644 lib/model/profile.dart delete mode 100644 lib/view/LoginPageView.dart diff --git a/lib/model/Course.dart b/lib/model/Course.dart deleted file mode 100644 index 9cb4646..0000000 --- a/lib/model/Course.dart +++ /dev/null @@ -1,24 +0,0 @@ -class Course { - final int id; - final String name; - final String abbreviation; - final String currYear; - final int firstEnrollment; - final String state; - - Course ( - int id, - String name, - String abbreviation, - String currYear, - int firstEnrollment, - String state - ){ - this.id = id; - this.name = name; - this.abbreviation = abbreviation; - this.currYear = currYear; - this.firstEnrollment = firstEnrollment; - this.state = state; - } -} \ No newline at end of file diff --git a/lib/model/CurricularUnit.dart b/lib/model/CurricularUnit.dart deleted file mode 100644 index 738aae1..0000000 --- a/lib/model/CurricularUnit.dart +++ /dev/null @@ -1,27 +0,0 @@ -class CurricularUnit { - int id; - String code; - String abbreviation; - String name; - int curricularYear; - String semesterCode; - String semesterName; - String type; - String status; - String grade; - String ectsGrade; - num ects; - - CurricularUnit({this.id, - this.code, - this.abbreviation, - this.name, - this.curricularYear, - this.semesterCode, - this.semesterName, - this.type, - this.status, - this.grade, - this.ectsGrade, - this.ects}); -} \ No newline at end of file diff --git a/lib/model/lecture.dart b/lib/model/lecture.dart deleted file mode 100644 index 80307aa..0000000 --- a/lib/model/lecture.dart +++ /dev/null @@ -1,40 +0,0 @@ -class Lecture { - static var dayName = [ - 'Segunda-feira', - 'Terça-feira', - 'Quarta-feira', - 'Quinta-feira', - 'Sexta-feira', - 'Sábado', - 'Domingo' - ]; - String subject; - String startTime; - String endTime; - String typeClass; - String room; - String teacher; - String classNumber; - - - Lecture ( - String subject, - String typeClass, - String room, - String teacher, - String classNumber, - int startTimeHours, - int startTimeMinutes, - int endTimeHours, - int endTimeMinutes) { - this.subject = subject; - this.typeClass = typeClass; - this.room = room; - this.teacher = teacher; - this.classNumber = classNumber; - this.startTime = startTimeHours.toString().padLeft(2, '0') + 'h' + - startTimeMinutes.toString().padLeft(2, '0'); - this.endTime = endTimeHours.toString().padLeft(2, '0') + 'h' + - endTimeMinutes.toString().padLeft(2, '0'); - } -} \ No newline at end of file diff --git a/lib/model/profile.dart b/lib/model/profile.dart deleted file mode 100644 index 750e74c..0000000 --- a/lib/model/profile.dart +++ /dev/null @@ -1,17 +0,0 @@ -import 'Course.dart'; - -class Profile { - final String name; - final String email; - List courses; - - Profile( - String name, - String email, - List courses - ) { - this.name = name; - this.email = email; - this.courses = courses; - } -} \ No newline at end of file diff --git a/lib/view/LoginPageView.dart b/lib/view/LoginPageView.dart deleted file mode 100644 index aedd3b1..0000000 --- a/lib/view/LoginPageView.dart +++ /dev/null @@ -1,43 +0,0 @@ -import 'package:flutter/material.dart'; - -class LoginPageView extends StatefulWidget { - @override - _LoginPageViewState createState() => _LoginPageViewState(); -} - -class _LoginPageViewState extends State { - @override - Widget build(BuildContext context) { - final MediaQueryData queryData = MediaQuery.of(context); - - return Scaffold ( - backgroundColor: Colors.white, - appBar : AppBar ( - title : Text("SigarraIO") - ), - body : SingleChildScrollView( - child: Column ( - children : getWidgets() - ) - ) - ); - } - - static final TextEditingController usernameController = TextEditingController(); - static final TextEditingController passwordController = TextEditingController(); - - getWidgets() { - final List widgets = []; - widgets.add(createUsernameInput()); - } - - Widget createUsernameInput(){ - return TextFormField( - enableSuggestions: false, - autofocus: false, - controller : usernameController, - textInputAction: TextInputAction.next, - textAlign:TextAlign.left, - ); - } - } \ No newline at end of file