Skip to content

Commit

Permalink
fix:Corrected the navigation to the update timetable page
Browse files Browse the repository at this point in the history
  • Loading branch information
angrezichatterbox committed Sep 10, 2024
1 parent 8c9594a commit 8a9bdd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import 'package:bunk_mate/screens/OnBoardView.dart';
import 'package:bunk_mate/screens/TimeTable/time_table_page.dart';
import 'package:bunk_mate/screens/auth/login_screen.dart';
import 'package:bunk_mate/screens/homepage/homepage_screen.dart';
import 'package:bunk_mate/utils/Navigation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/homepage/homepage_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class _HomePageState extends State<HomePage> {
color: Color.fromARGB(255, 7, 9, 15),
elevation: 2,
onSelected: (value) async {
if (value == 1) {
Get.to(TimetableView());
if (value == 0) {
Get.to(const TimetableView());
} else if (value == 2) {
bool success = await loginController.logoutfunction();
if (!success) {
Expand Down

0 comments on commit 8a9bdd8

Please sign in to comment.