Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Faculty folder. #122

Open
wants to merge 5 commits into
base: test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Components/side_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class _SideDrawerState extends State<SideDrawer> {
ModulesPadding(
line: 'Library Module',
pageMover: '/library_homepage'),
ModulesPadding(line: 'Awards & Scholarship Module'),
ModulesPadding(line: 'Awards & Scholarship Module', isActive: true, pageMover: '/scholarship_awards',),
ModulesPadding(
line: 'Complaint Module', pageMover: '/complaint'),
ModulesPadding(line: 'Central Mess Module'),
Expand Down
11 changes: 11 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ import 'package:fusion/screens/Healthcenter/viewschedule.dart';
import 'package:fusion/screens/Healthcenter/history.dart';
import 'package:fusion/screens/Healthcenter/HealthCenter.dart';
import 'package:fusion/services/service_locator.dart';
import 'package:fusion/screens/Scholarships_Awards/scholarship_awards.dart';
import 'package:fusion/screens/Scholarships_Awards/AwardCatalogue/award_catalogue.dart';
import 'package:fusion/screens/Scholarships_Awards/AwardCatalogue/Faculty/invite_application.dart';
import 'package:fusion/screens/Scholarships_Awards/AwardCatalogue/Faculty/award_catalogue.dart';
import 'package:fusion/screens/Scholarships_Awards/ApplyForAwards/applyforawards.dart';

void main() {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -109,6 +114,12 @@ class MyApp extends StatelessWidget {
'/gymkhana_homepage/polls': (context) => Polls(),
'/gymkhana_homepage/clubs': (context) => Club(),
'/gymkhana_homepage/member_records': (context) => Records(),
'/scholarship_awards': (context) => ScholarshipAwards(ModalRoute.of(context)!.settings.arguments.toString()),
'/scholarship_awards/browse_award_catalogue': (context) => BrowseAwardCatalogue(),
'/scholarship_awards/manage_award_catalogue_fac': (context) => ManageAwardCatalogueFaculty(),
'/scholarship_awards/invite_application': (context) => InviteApplication(),
'/scholarship_awards/apply_for_awards': (context) => ApplyForAwards(),

'/library_homepage': (context) => LibraryHomeScreen(),
'/library_homepage/book_search': (context) => BookSearch(),
'/library_homepage/issued_items': (context) => IssuedItems(),
Expand Down
76 changes: 76 additions & 0 deletions lib/screens/Scholarships_Awards/ApplyForAwards/Convocation.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import 'package:flutter/material.dart';

class Convocation extends StatefulWidget {
@override
_ConvocationState createState() => _ConvocationState();
}

class _ConvocationState extends State<Convocation> {
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
String? programme_type;
List awardTypeItem = [
"Directors Gold Medal",
"Directors Silver Medal",
'Notional Prizes',
'MCM Scholarship',
'D&M Proficiency Gold Medal',
];
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Padding(
padding: const EdgeInsets.all(18.0),
child: Column(
children: <Widget>[
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 4, vertical: 16),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
border: Border.all(
color: Colors.grey,
),
borderRadius: BorderRadius.circular(15),
),
child: DropdownButton(
hint: Text('Enter Award'),
dropdownColor: Colors.grey[200],
icon: Icon(Icons.arrow_drop_down),
isExpanded: true,
underline: SizedBox(),
style: TextStyle(color: Colors.black, fontSize: 16),
onChanged: (newValue) {
setState(() {
programme_type = newValue.toString();
});
print(programme_type);
//print(valueItem);
},
value: programme_type,
items: awardTypeItem.map((valueItem) {
return DropdownMenuItem(
value: valueItem,
child: Text(valueItem),
);
}).toList(),
),
),
),
SizedBox(height: 20),
SizedBox(height: 20),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 40),
child: Divider(
thickness: 1,
color: Colors.black54,
),
),
]
),
),
),
);
}
}
Loading