Skip to content

Commit

Permalink
Merge pull request #61 from FindMyProfessors/mobile
Browse files Browse the repository at this point in the history
Final mobile update
  • Loading branch information
LockedThread authored Jul 23, 2024
2 parents 1d8b2fc + 7984e2e commit 1a2ac82
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions mobile/app/lib/widgets/sideMenu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:app/screens/dashboard.dart';
import 'package:app/screens/welcome_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:app/screens/cart_screen.dart';

final storage = new FlutterSecureStorage();

Expand Down Expand Up @@ -67,11 +68,18 @@ Future<void> _loadUserValues() async {

Divider(color: Colors.black, thickness: 1.0),

ListTile(
leading: Icon(Icons.shopping_cart, color: Colors.white),
title: Text('Course Cart' , style: TextStyle(color: Colors.white)),
onTap: () => {Navigator.of(context).pop()},
),
// ListTile(
// leading: Icon(Icons.shopping_cart, color: Colors.white),
// title: Text('Course Cart' , style: TextStyle(color: Colors.white)),
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (e) => const CartScreen(),
// ),
// );
// },
// ),

Divider(color: Colors.black, thickness: 1.0),

Expand All @@ -96,7 +104,7 @@ Future<void> _loadUserValues() async {
title: Text('Logout' , style: TextStyle(color: Colors.white)),
onTap: () async => {
//clerar storage of proffessors
Professors = [],
//Professors = [],
//delete user info
await storage.deleteAll(),

Expand Down

0 comments on commit 1a2ac82

Please sign in to comment.