Commit 7ee6ebcb authored by Uditha Prabhasha 's avatar Uditha Prabhasha

Update games.dart

parent 8d4d835b
......@@ -37,14 +37,12 @@ class GamesPage extends StatelessWidget {
],
selectedItemColor: Colors.blue,
unselectedItemColor: Colors.grey,
currentIndex: 2,
onTap: (index) {
switch (index) {
case 0:
// Navigate to Home
Navigator.push(
context,
MaterialPageRoute(builder: (context) => AddClassroomPage()),
);
break;
case 1:
// Navigate to Chat
......@@ -58,10 +56,7 @@ class GamesPage extends StatelessWidget {
break;
case 3:
// Navigate to Profile
Navigator.push(
context,
MaterialPageRoute(builder: (context) => TeacherProfilePage()),
);
break;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment