-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from LEIC-ES-2021-22/ze/service-list
feat: add service list
- Loading branch information
Showing
5 changed files
with
145 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
class Service{ | ||
final int id; | ||
final String name; | ||
final String description; | ||
final String startTime; | ||
final String endTime; | ||
|
||
|
||
Service(this.id, this.name, this.description,this.startTime,this.endTime){} | ||
|
||
Map<String, dynamic> toMap() { | ||
return { | ||
'id': id, | ||
'begin': startTime, | ||
'end': endTime, | ||
'rooms': '', | ||
'subject': name | ||
}; | ||
} | ||
|
||
@override | ||
String toString() { | ||
return '''$id - $name - $description - $startTime - $endTime'''; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:uni/model/entities/service.dart'; | ||
|
||
class ServiceMock{ | ||
|
||
static List<Service> getServices(){ | ||
return [ | ||
Service(1,'SERAC' , | ||
'Garantir as atividades no âmbito da administração, gestão e apoio na área de gestão de curso; a área do acesso, ingresso e certificação; a área de gestão de estudante, de acordo com as instruções tutelares e as diretivas dos Órgãos de Gestão, constituindo a relação com o estudante o vetor essencial da sua atuação.', | ||
'11:00', '16:00'), | ||
|
||
Service(2, 'SDInf', | ||
'Aos Serviços de Documentação e Informação compete gerir os recursos de informação cientifico-técnica e de cariz pedagógico, a documentação administrativa e os recursos patrimoniais de componente cultural, científica ou tecnológica, numa abordagem teórica e funcional que integram a Biblioteconomia, Arquivologia e Museologia, dando centralidade ao documento, à informação e ao seu uso e gestão em contexto organizacional. Os SDI integram as unidades de Arquivo, Biblioteca, Museu e Serviços Eletrónicos, com missões, recursos e pessoal específicos mas numa prática integradora onde as novas tecnologias de criação, armazenamento, difusão e comunicação da informação ganham um papel relevante.' | ||
, '08:30', '19:30'), | ||
|
||
Service(3, 'SICC', | ||
' Os Serviços de Imagem, Comunicação e Cooperação têm por missão construir relações de confiança e uma reputação institucional excelente, e valorizar o conhecimento e cultivar o talento da comunidade intercultural e global da FEUP.', | ||
'9:30-13:00', '14:00-17:00'), | ||
|
||
Service(4, 'SRH', | ||
'Os Serviços de Recursos Humanos tem como missão o recrutamento, a selecção e a integração, a gestão e o desenvolvimento dos recursos humanos da FEUP.', | ||
'10:00-12:00', '14:30-16:30'), | ||
|
||
Service(5, 'SEF', | ||
'Os SEF têm como Missão assegurar a atividade económica e financeira da FEUP, de acordo com as instruções tutelares e as diretivas dos Órgãos de Gestão.', | ||
'9:00', '16:00'), | ||
|
||
Service(6, 'STMA', | ||
'Gestão e manutenção dos espaços e dos equipamentos da Escola, de modo a garantir as melhores condições para o ensino de excelência na área das engenharias.', | ||
'09:00-12:30', '14:00-17:30') | ||
|
||
]; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:uni/view/Widgets/exam_filter_menu.dart'; | ||
|
||
class ServicePageTitleFilter extends StatelessWidget { | ||
final String name; | ||
|
||
const ServicePageTitleFilter({Key key, @required this.name}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
padding: EdgeInsets.fromLTRB(20, 20, 20, 10), | ||
alignment: Alignment.center, | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: [ | ||
Text( | ||
name, | ||
style: | ||
Theme.of(context).textTheme.headline6.apply(fontSizeDelta: 7), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters