From 0eb40c825dcc190ae8195544e77453603a3c01f3 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 4 Jul 2024 19:07:27 +0300 Subject: [PATCH] fix: events server address --- lib/constants/tools.dart | 9 +++++++++ lib/pages/settings_page.dart | 3 +-- lib/tools/events/models/services/event_service.dart | 2 +- lib/tools/events/models/services/semester_service.dart | 2 +- lib/tools/leaderboard/hall_of_fame_page.dart | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/constants/tools.dart b/lib/constants/tools.dart index dddb183..dd16e40 100644 --- a/lib/constants/tools.dart +++ b/lib/constants/tools.dart @@ -21,6 +21,15 @@ final List> allTools = [ "ontap": () {}, "description": "Wanna calculate your GPA? try it here" }, + { + "id": 2, + "name": "Fees statements", + "action": "Preview my fees statements", + "image": "assets/images/coin.png", + "ontap": () {}, + "description": "Having trouble tracking your finaces? We're here for you" + }, + // { // "id": 2, // "name": "Elearning", diff --git a/lib/pages/settings_page.dart b/lib/pages/settings_page.dart index d109b2a..a412509 100644 --- a/lib/pages/settings_page.dart +++ b/lib/pages/settings_page.dart @@ -12,11 +12,10 @@ class SettingsPage extends StatelessWidget { slivers: [ SliverAppBar( backgroundColor: Theme.of(context).colorScheme.primaryContainer, - expandedHeight: 160, + expandedHeight: 250, flexibleSpace: const FlexibleSpaceBar( title: Text( "Settings", - style: TextStyle(color: Colors.black), ), ), pinned: true, diff --git a/lib/tools/events/models/services/event_service.dart b/lib/tools/events/models/services/event_service.dart index 1802cb8..8ddd31c 100644 --- a/lib/tools/events/models/services/event_service.dart +++ b/lib/tools/events/models/services/event_service.dart @@ -6,7 +6,7 @@ import '../models.dart'; class EventsService { // static const String eventUrlPrefix = "http://notifier.erick.serv00.net"; - static const String eventUrlPrefix = "http://localhost:8080"; + static const String eventUrlPrefix = "http://notifier.erick.serv00.net"; Future>> fetchDueEvents() async { try { diff --git a/lib/tools/events/models/services/semester_service.dart b/lib/tools/events/models/services/semester_service.dart index e127ea6..aac77e0 100644 --- a/lib/tools/events/models/services/semester_service.dart +++ b/lib/tools/events/models/services/semester_service.dart @@ -5,7 +5,7 @@ import 'package:http/http.dart' as http; import '../models.dart'; class SemesterService { - static const String urlPrefix = "http://localhost:8080"; + static const String urlPrefix = "http://notifier.erick.serv00.net"; Future>> fetchAllSemesters() async { try { diff --git a/lib/tools/leaderboard/hall_of_fame_page.dart b/lib/tools/leaderboard/hall_of_fame_page.dart index b532931..b74f8d6 100644 --- a/lib/tools/leaderboard/hall_of_fame_page.dart +++ b/lib/tools/leaderboard/hall_of_fame_page.dart @@ -113,7 +113,7 @@ class HallOfFamePage extends StatelessWidget { padding: const EdgeInsets.only(bottom: 8), child: ListTile( leading: CircleAvatar( - child: Text(index.toString()), + child: Text((index + 3).toString()), ), title: Text( "@${moreUsers[index].username}",