Skip to content

Commit

Permalink
updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
azharhayat271 committed May 8, 2024
1 parent 250af5c commit ef28e43
Show file tree
Hide file tree
Showing 22 changed files with 656 additions and 43 deletions.
7 changes: 7 additions & 0 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# This is a generated file; do not edit or check into version control.
mapbox_gl=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\mapbox_gl-0.16.0\\
mapbox_gl_web=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\mapbox_gl_web-0.16.0\\
url_launcher=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher-6.2.6\\
url_launcher_android=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_android-6.3.1\\
url_launcher_ios=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_ios-6.2.5\\
url_launcher_linux=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_linux-3.1.1\\
url_launcher_macos=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_macos-3.1.0\\
url_launcher_web=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_web-2.3.1\\
url_launcher_windows=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\url_launcher_windows-3.1.1\\
webview_flutter=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter-4.7.0\\
webview_flutter_android=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_android-3.16.1\\
webview_flutter_wkwebview=C:\\Users\\azhar\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\webview_flutter_wkwebview-3.13.0\\
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mapbox_gl","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl-0.16.0\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.13.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"mapbox_gl","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl-0.16.0\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_android","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-3.16.1\\\\","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"mapbox_gl_web","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl_web-0.16.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"mapbox_gl","dependencies":["mapbox_gl_web"]},{"name":"mapbox_gl_web","dependencies":[]},{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-05-08 23:25:29.370343","version":"3.19.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mapbox_gl","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl-0.16.0\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_ios-6.2.5\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_wkwebview","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_wkwebview-3.13.0\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"mapbox_gl","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl-0.16.0\\\\","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_android-6.3.1\\\\","native_build":true,"dependencies":[]},{"name":"webview_flutter_android","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\webview_flutter_android-3.16.1\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"url_launcher_macos","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_macos-3.1.0\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"url_launcher_linux","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_linux-3.1.1\\\\","native_build":true,"dependencies":[]}],"windows":[{"name":"url_launcher_windows","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_windows-3.1.1\\\\","native_build":true,"dependencies":[]}],"web":[{"name":"mapbox_gl_web","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\mapbox_gl_web-0.16.0\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\Users\\\\azhar\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\url_launcher_web-2.3.1\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"mapbox_gl","dependencies":["mapbox_gl_web"]},{"name":"mapbox_gl_web","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]},{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2024-05-09 02:40:58.550639","version":"3.19.5"}
42 changes: 26 additions & 16 deletions lib/cards/departments_card.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
import 'package:flutter/material.dart';
import './details//department.dart'; // Import your department screen file

class DepartmentsCard extends StatelessWidget {
const DepartmentsCard({super.key});

@override
Widget build(BuildContext context) {
return Card(
elevation: 5.0,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: const [
Icon(Icons.school, size: 40, color: Colors.brown),
SizedBox(height: 10),
Text('Acedemia', style: TextStyle(fontWeight: FontWeight.bold)),
SizedBox(height: 5),
Padding(
padding: EdgeInsets.only(left: 16.0),
child: Text('Explore academic programs.'),
),
],
return GestureDetector(
onTap: () {
// Navigate to your department screen
Navigator.push(
context,
MaterialPageRoute(builder: (context) => DepartmentScreen()),
);
},
child: const Card(
elevation: 5.0,
child: Padding(
padding: EdgeInsets.all(16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.school, size: 40, color: Colors.brown),
SizedBox(height: 10),
Text('Academia', style: TextStyle(fontWeight: FontWeight.bold)),
SizedBox(height: 5),
Padding(
padding: EdgeInsets.only(left: 16.0),
child: Text('Explore academic programs.'),
),
],
),
),
),
);
Expand Down
68 changes: 68 additions & 0 deletions lib/cards/details/bme.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import 'package:flutter/material.dart';

class BiomedicalEngineeringScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Biomedical Engineering Department'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Programs Offered:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text(
'Masters Programs',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 10),
Text(
'Bachelors Programs:',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text('- Biomedical Engineering'),
SizedBox(height: 20),
Text(
'Total Students: 200',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 20),
Text(
'Departmental Societies:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Biomedical Engineers Society'),
SizedBox(height: 20),
Text(
'Staff:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Dr. Ali Khan (Chairman)'),
Text('- Dr. Sarah Ahmed'),
Text('- Dr. Usman Ali'),
Text('- Dr. Ayesha Siddiqua'),
Text('- Miss Saba Naz'),
// Add other staff members similarly
],
),
),
);
}
}
70 changes: 70 additions & 0 deletions lib/cards/details/civil.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import 'package:flutter/material.dart';

class CivilEngineeringScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Civil Engineering Department'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Programs Offered:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text(
'Masters Programs',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 10),
Text(
'Bachelors Programs:',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text('- Civil Engineering'),
SizedBox(height: 20),
Text(
'Total Students: 250',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 20),
Text(
'Departmental Societies:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Codator'),
SizedBox(height: 20),
Text(
'Staff:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Dr. Muhammad Idrees (Chairman)'),
Text('- Dr. Mubasshir Khatana'),
Text('- Dr. Yaseen ul haq'),
Text('- Dr. Iqra Muneer'),
Text('- Miss Fatima Shahzadi'),
Text('- Miss Sadia Tariq'),
Text('- Miss Rabia Sana'),
// Add other staff members similarly
],
),
),
);
}
}
71 changes: 71 additions & 0 deletions lib/cards/details/cs.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import 'package:flutter/material.dart';

class ComputerScienceScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Computer Science Department'),
),
body: SingleChildScrollView(
padding: EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Programs Offered:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text(
'Masters Programs',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 10),
Text(
'Bachelors Programs:',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text('- Computer Science'),
SizedBox(height: 20),
Text(
'Total Students: 250',
style: TextStyle(fontWeight: FontWeight.bold),
),
SizedBox(height: 20),
Text(
'Departmental Societies:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Codator'),
SizedBox(height: 20),
Text(
'Staff:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 10),
Text('- Dr. Muhammad Idrees (Chairman)'),
Text('- Dr. Mubasshir Khatana'),
Text('- Dr. Yaseen ul haq'),
Text('- Dr. Iqra Muneer'),
Text('- Miss Fatima Shahzadi'),
Text('- Miss Sadia Tariq'),
Text('- Miss Rabia Sana'),

// Add other staff members similarly
],
),
),
);
}
}
97 changes: 97 additions & 0 deletions lib/cards/details/department.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
// DepartmentScreen.dart
import 'package:flutter/material.dart';
import './cs.dart';
import './civil.dart';
import './electrical.dart';
import './mechnical.dart';
import './bme.dart';
// Import other department screen files

class DepartmentScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Departments'),
),
body: Column(
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: ListView(
children: [
DepartmentCard(
departmentName: 'Computer Science',
chairman: 'Dr. Muhammad Idrees',
icon: Icons.computer,
departmentScreen: ComputerScienceScreen(),
),
DepartmentCard(
departmentName: 'Civil Engineering',
chairman: 'Dr. Khawaja Adeel',
icon: Icons.flash_on,
departmentScreen: CivilEngineeringScreen(),
),

DepartmentCard(
departmentName: 'Electrical Engineering',
chairman: 'Dr. Muhammad Usman',
icon: Icons.electrical_services,
departmentScreen: ElectricalEngineeringScreen(),
),

DepartmentCard(
departmentName: 'Mechanical Engineering',
chairman: 'Dr. Muhammad Usman',
icon: Icons.engineering,
departmentScreen: MechanicalEngineeringScreen(),
),

DepartmentCard(
departmentName: 'Biomedical Engineering',
chairman: 'Dr. Muhammad Usman',
icon: Icons.medical_services,
departmentScreen: BiomedicalEngineeringScreen(),
),

// Add other department cards similarly
],
),
),
],
),
);
}
}

class DepartmentCard extends StatelessWidget {
final String departmentName;
final String chairman;
final IconData icon;
final Widget departmentScreen;

const DepartmentCard({
required this.departmentName,
required this.chairman,
required this.icon,
required this.departmentScreen,
});

@override
Widget build(BuildContext context) {
return Card(
elevation: 5.0,
child: ListTile(
leading: Icon(icon),
title: Text(departmentName),
subtitle: Text('Chairman: $chairman'),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => departmentScreen),
);
},
),
);
}
}
Loading

0 comments on commit ef28e43

Please sign in to comment.