Skip to content

Commit

Permalink
fix: events server address
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMuuo committed Jul 4, 2024
1 parent b81d4a4 commit 0eb40c8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
9 changes: 9 additions & 0 deletions lib/constants/tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ final List<Map<String, dynamic>> 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",
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/tools/events/models/services/event_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Either<String, List<Event>>> fetchDueEvents() async {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/tools/events/models/services/semester_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Either<String, List<Semester>>> fetchAllSemesters() async {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/tools/leaderboard/hall_of_fame_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 0eb40c8

Please sign in to comment.