Skip to content

Commit

Permalink
Fix: mentor page error message and practical section time table (#248)
Browse files Browse the repository at this point in the history
* timetable resources fixed

* error message in mentorpage fixeed

* call launch fixed

* version upgrade to 44
  • Loading branch information
nayakastha authored Dec 20, 2021
1 parent 5363e66 commit 7117a7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 44 deletions.
41 changes: 5 additions & 36 deletions scp/lib/time_table_resources.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,6 @@ abstract class TimeTableResources {
theory['G']['TL'] = theory['H']['TL'] = 'Mathematics-$courseNumber';
}

static final tpSequence = {
'Monday': ['TA', 'TB', 'TC', 'TE', 'PA', 'PA', 'PA', 'TF', 'ZA'],
'Tuesday': ['TB', 'TC', 'TD', 'TE', 'PB', 'PB', 'PB', 'TF', 'ZB'],
'Wednesday': [
'',
'PX',
'PX',
'PX',
'TG1',
'SA',
'SB',
'SC',
'ZA',
'SM1',
'SJ1',
'SK1',
'SL1',
'',
'PY',
'PY',
'PY',
''
],
'Thursday': ['TC', 'TD', 'TA', 'TG2', 'PC', 'PC', 'PC', 'TF', 'ZC'],
'Friday': ['TD', 'TA', 'TB', 'TE', 'PD', 'PD', 'PD', 'TG3', 'ZA']
};

static final sequence = {
'tp': {
'Monday': ['TA', 'TB', 'TC', 'TE', 'PA', 'PA', 'PA', 'TF', 'ZA'],
Expand Down Expand Up @@ -102,10 +75,6 @@ abstract class TimeTableResources {
}
};

// static var theoryTutorialAssociation = {
// 'TA': 'SA', 'TB': 'SB', 'TC': 'SC', 'TD': 'TG1', 'TE': 'TG2',
// 'TF': 'TG3', 'TJ': 'SJ', 'TK': 'SK', 'TL': 'SL', 'TM': 'SM'};

static final slotTime = [
{'start': '8:00', 'end': '8:55'},
{'start': '9:00', 'end': '9:55'},
Expand Down Expand Up @@ -226,11 +195,11 @@ abstract class TimeTableResources {
'P3': {'PC': 'PL', 'PD': 'BP', 'PA': 'WP'},
'P4': {'PD': 'PL', 'PX': 'BP', 'PB': 'WP'},
'P5': {'PX': 'PL', 'PA': 'BP', 'PC': 'WP'},
'P6': {'PE': 'CL', 'PG': 'ED'},
'P7': {'PF': 'CL', 'PH': 'ED'},
'P8': {'PG': 'CL', 'PY': 'ED'},
'P9': {'PH': 'CL', 'PE': 'ED'},
'P10': {'PY': 'CL', 'PF': 'ED'},
'P6': {'PF': 'CL', 'PG': 'ED'},
'P7': {'PG': 'CL', 'PH': 'ED'},
'P8': {'PH': 'CL', 'PY': 'ED'},
'P9': {'PY': 'CL', 'PE': 'ED'},
'P10': {'PE': 'CL', 'PF': 'ED'},
};

static final practicalDetails = {
Expand Down
6 changes: 0 additions & 6 deletions scp/lib/ui/views/mentor_search/mentee_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ class MenteeDetails extends StatelessWidget {
itemBuilder: (BuildContext context, int index) {
return ListTile(
dense: true,
onTap: () {
launchURL('tel:' +
result.data["getMentorByRollnumber"]["mentees"]
[index]["contact"]);
},
leading: Icon(Icons.call),
title: Text(
result.data["getMentorByRollnumber"]["mentees"][index]
["name"],
Expand Down
2 changes: 1 addition & 1 deletion scp/lib/ui/views/mentor_search/mentor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class MentorDetails extends StatelessWidget {
if (result.data["mentee"] == null) {
return Center(
child: Text(
"Re-Login with the correct Roll Number",
"Please wait for your mentor to be alloted. You will be updated soon.",
style: TextStyle(
color: primaryColor,
fontSize: 32,
Expand Down
2 changes: 1 addition & 1 deletion scp/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Mobile app of ICS NIT Rourkela
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 4.3.0+43
version: 4.4.0+44

environment:
sdk: ">=2.2.2 <3.0.0"
Expand Down

0 comments on commit 7117a7b

Please sign in to comment.