Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d66b42e
navigation to introduction screen
pedroafmonteiro Jul 23, 2025
9c1b30f
added seamless native ui mode transitions between the initial pages a…
pedroafmonteiro Jul 23, 2025
bd03b37
changed to immersiveSticky
pedroafmonteiro Jul 23, 2025
99fcb99
added animations package and changed transition between login and int…
pedroafmonteiro Jul 23, 2025
ae52b9d
added animations in items in the introduction screen
pedroafmonteiro Jul 24, 2025
fcfe680
added scaffold to page view
pedroafmonteiro Jul 30, 2025
0f58b46
Merge branch 'develop' into feature/introduction-screen
pedroafmonteiro Jul 30, 2025
04fc8c2
refactored code
pedroafmonteiro Jul 30, 2025
4ee8635
removed unused import
pedroafmonteiro Jul 30, 2025
67c83dc
Merge branch 'develop' into feature/introduction-screen
pedroafmonteiro Aug 30, 2025
5f473ce
feat: added second page to introduction and added Poppins font
pedroafmonteiro Sep 1, 2025
975c276
Merge branch 'develop' into feature/introduction-screen
pedroafmonteiro Nov 4, 2025
1fe8bf5
feat: added more screens to the introduction page
pedroafmonteiro Nov 4, 2025
cb0d8b2
feat: translations
pedroafmonteiro Nov 4, 2025
f50a756
fix: formatted
pedroafmonteiro Nov 4, 2025
f399fdb
feat: notification page
pedroafmonteiro Nov 5, 2025
323070b
Merge branch 'develop' into feature/introduction-screen
pedroafmonteiro Mar 8, 2026
2e0729d
feat: made button floating so it is smoother
pedroafmonteiro Mar 9, 2026
2028e4c
formatted
pedroafmonteiro Mar 9, 2026
7351e8e
Merge remote-tracking branch 'origin/develop' into feature/introducti…
simaopsbarbosa Mar 31, 2026
6b2a6c5
generated file
simaopsbarbosa Mar 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions packages/uni_app/assets/fonts/Poppins/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added packages/uni_app/assets/images/exams_intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/uni_app/assets/images/faculty_intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/uni_app/assets/images/intro1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/uni_app/assets/images/intro2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/uni_app/assets/images/map_intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:logger/logger.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:uni/controller/background_workers/notifications/tuition_notification.dart';
import 'package:uni/controller/local_storage/notification_timeout_storage.dart';
Expand Down Expand Up @@ -75,6 +76,50 @@ class NotificationManager {
await _buildNotificationWorker();
}

Future<bool> hasNotificationPermission() async {
if (Platform.isAndroid) {
try {
final status = await Permission.notification.status;
if (status.isGranted) {
return true;
}

if (status.isDenied ||
status.isPermanentlyDenied ||
status.isRestricted) {
return false;
}

final androidPlugin = _localNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin
>();
final bool? enabled = await androidPlugin?.areNotificationsEnabled();
return enabled ?? true;
} catch (_) {
final androidPlugin = _localNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin
>();
try {
final bool? enabled = await androidPlugin?.areNotificationsEnabled();
return enabled ?? true;
} catch (_) {
return true;
}
}
} else if (Platform.isIOS) {
try {
final status = await Permission.notification.status;
return status.isGranted;
} catch (_) {
return false;
}
}

return false;
}

static Future<void> _initFlutterNotificationsPlugin() async {
const initializationSettingsAndroid = AndroidInitializationSettings(
'@mipmap/launcher_icon',
Expand Down
19 changes: 19 additions & 0 deletions packages/uni_app/lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ class MessageLookup extends MessageLookupByLibrary {
"exams_filter": MessageLookupByLibrary.simpleMessage(
"Exams Filter Settings",
),
"exams_intro_message": MessageLookupByLibrary.simpleMessage(
"Stay always updated with your exams",
),
"exit_confirm": MessageLookupByLibrary.simpleMessage(
"Do you really want to exit?",
),
Expand Down Expand Up @@ -254,6 +257,10 @@ class MessageLookup extends MessageLookupByLibrary {
),
"logout": MessageLookupByLibrary.simpleMessage("Log out"),
"lunch": MessageLookupByLibrary.simpleMessage("Lunch"),
"map": MessageLookupByLibrary.simpleMessage("Map"),
"map_intro_message": MessageLookupByLibrary.simpleMessage(
"Explore the campus with our interactive map",
),
"menus": MessageLookupByLibrary.simpleMessage("Menus"),
"min_value_reference": MessageLookupByLibrary.simpleMessage(
"Minimum value: 1,00 €",
Expand Down Expand Up @@ -374,6 +381,9 @@ class MessageLookup extends MessageLookupByLibrary {
"No trips found at the moment",
),
"notifications": MessageLookupByLibrary.simpleMessage("Notifications"),
"notifications_intro_message": MessageLookupByLibrary.simpleMessage(
"Would you like to receive notifications regarding important updates and alerts, including fee deadlines?",
),
"now": MessageLookupByLibrary.simpleMessage("Now"),
"occurrence_type": MessageLookupByLibrary.simpleMessage(
"Type of occurrence",
Expand Down Expand Up @@ -428,9 +438,15 @@ class MessageLookup extends MessageLookupByLibrary {
),
"restaurant_period": m4,
"restaurants": MessageLookupByLibrary.simpleMessage("Restaurants"),
"restaurants_intro_message": MessageLookupByLibrary.simpleMessage(
"Discover campus dining options and menus",
),
"room": MessageLookupByLibrary.simpleMessage("Room"),
"save": MessageLookupByLibrary.simpleMessage("Save"),
"schedule": MessageLookupByLibrary.simpleMessage("Schedule"),
"schedule_intro_message": MessageLookupByLibrary.simpleMessage(
"Keep track of your daily classes and activities",
),
"school_calendar": MessageLookupByLibrary.simpleMessage("School Calendar"),
"search": MessageLookupByLibrary.simpleMessage("Search"),
"see_more": MessageLookupByLibrary.simpleMessage("See more"),
Expand All @@ -441,6 +457,9 @@ class MessageLookup extends MessageLookupByLibrary {
"An error occurred in sending",
),
"services": MessageLookupByLibrary.simpleMessage("Services"),
"services_intro_message": MessageLookupByLibrary.simpleMessage(
"Access various campus services at your fingertips",
),
"settings": MessageLookupByLibrary.simpleMessage("Settings"),
"snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"),
"some_error": MessageLookupByLibrary.simpleMessage("Some error!"),
Expand Down
19 changes: 19 additions & 0 deletions packages/uni_app/lib/generated/intl/messages_pt_PT.dart
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ class MessageLookup extends MessageLookupByLibrary {
"exams_filter": MessageLookupByLibrary.simpleMessage(
"Definições Filtro de Exames",
),
"exams_intro_message": MessageLookupByLibrary.simpleMessage(
"Mantém-te sempre atualizado com os teus exames",
),
"exit_confirm": MessageLookupByLibrary.simpleMessage(
"Tem a certeza de que pretende sair?",
),
Expand Down Expand Up @@ -266,6 +269,10 @@ class MessageLookup extends MessageLookupByLibrary {
),
"logout": MessageLookupByLibrary.simpleMessage("Terminar sessão"),
"lunch": MessageLookupByLibrary.simpleMessage("Almoço"),
"map": MessageLookupByLibrary.simpleMessage("Mapa"),
"map_intro_message": MessageLookupByLibrary.simpleMessage(
"Navega pelo campus com o nosso mapa interativo",
),
"menus": MessageLookupByLibrary.simpleMessage("Ementas"),
"min_value_reference": MessageLookupByLibrary.simpleMessage(
"Valor mínimo: 1,00 €",
Expand Down Expand Up @@ -396,6 +403,9 @@ class MessageLookup extends MessageLookupByLibrary {
"Não há viagens planeadas de momento",
),
"notifications": MessageLookupByLibrary.simpleMessage("Notificações"),
"notifications_intro_message": MessageLookupByLibrary.simpleMessage(
"Queres receber alertas de eventos e informações importantes, incluindo o prazo limite de propinas?",
),
"now": MessageLookupByLibrary.simpleMessage("Agora"),
"occurrence_type": MessageLookupByLibrary.simpleMessage(
"Tipo de ocorrência",
Expand Down Expand Up @@ -450,9 +460,15 @@ class MessageLookup extends MessageLookupByLibrary {
),
"restaurant_period": m4,
"restaurants": MessageLookupByLibrary.simpleMessage("Restaurantes"),
"restaurants_intro_message": MessageLookupByLibrary.simpleMessage(
"Descobre as opções de restauração do campus e os menus",
),
"room": MessageLookupByLibrary.simpleMessage("Sala"),
"save": MessageLookupByLibrary.simpleMessage("Guardar"),
"schedule": MessageLookupByLibrary.simpleMessage("Aulas"),
"schedule_intro_message": MessageLookupByLibrary.simpleMessage(
"Mantém o controlo das tuas aulas e atividades diárias",
),
"school_calendar": MessageLookupByLibrary.simpleMessage(
"Calendário Escolar",
),
Expand All @@ -465,6 +481,9 @@ class MessageLookup extends MessageLookupByLibrary {
"Ocorreu um erro no envio",
),
"services": MessageLookupByLibrary.simpleMessage("Serviços"),
"services_intro_message": MessageLookupByLibrary.simpleMessage(
"Explora os serviços académicos disponíveis para ti",
),
"settings": MessageLookupByLibrary.simpleMessage("Definições"),
"snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"),
"some_error": MessageLookupByLibrary.simpleMessage("Algum erro!"),
Expand Down
65 changes: 65 additions & 0 deletions packages/uni_app/lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions packages/uni_app/lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,20 @@
"@services": {},
"goi": "Orientation and Integration Office",
"@goi": {},
"map": "Map",
"@map": {},
"exams_intro_message": "Stay always updated with your exams",
"@exams_intro_message": {},
"schedule_intro_message": "Keep track of your daily classes and activities",
"@schedule_intro_message": {},
"restaurants_intro_message": "Discover campus dining options and menus",
"@restaurants_intro_message": {},
"services_intro_message": "Access various campus services at your fingertips",
"@services_intro_message": {},
"map_intro_message": "Explore the campus with our interactive map",
"@map_intro_message": {},
"notifications_intro_message": "Would you like to receive notifications regarding important updates and alerts, including fee deadlines?",
"@notifications_intro_message": {},
"no_course_unit_classes": "No classes have been assigned to this course unit yet",
"@no_course_unit_classes": {},
"no_course_unit_info": "This course unit has no information available yet",
Expand Down
14 changes: 14 additions & 0 deletions packages/uni_app/lib/l10n/intl_pt_PT.arb
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,20 @@
"@services": {},
"goi": "Gabinete de Orientação e Integração",
"@goi": {},
"map": "Mapa",
"@map": {},
"exams_intro_message": "Mantém-te sempre atualizado com os teus exames",
"@exams_intro_message": {},
"schedule_intro_message": "Mantém o controlo das tuas aulas e atividades diárias",
"@schedule_intro_message": {},
"restaurants_intro_message": "Descobre as opções de restauração do campus e os menus",
"@restaurants_intro_message": {},
"services_intro_message": "Explora os serviços académicos disponíveis para ti",
"@services_intro_message": {},
"map_intro_message": "Navega pelo campus com o nosso mapa interativo",
"@map_intro_message": {},
"notifications_intro_message": "Queres receber alertas de eventos e informações importantes, incluindo o prazo limite de propinas?",
"@notifications_intro_message": {},
"no_course_unit_classes": "Não foram atribuídas turmas a esta unidade curricular",
"@no_course_unit_classes": {},
"no_course_unit_info": "Esta unidade curricular ainda não tem informação disponível",
Expand Down
Loading
Loading