Skip to content

Commit

Permalink
Added dev credits & schedule card fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steevjames committed Jan 8, 2021
1 parent c658b8e commit 6c0a67a
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 14 deletions.
Binary file added assets/devs/ajesh.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/devs/joyal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/devs/priyanka.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/devs/steev.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 110 additions & 0 deletions lib/UI/Screens/HomePage/Widgets/Drawer/DevCredits/devCredits.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import 'package:excelapp/UI/constants.dart';
import 'package:flutter/material.dart';

class DevCredits extends StatefulWidget {
@override
State<StatefulWidget> createState() => DevCreditsState();
}

class DevCreditsState extends State<DevCredits>
with SingleTickerProviderStateMixin {
AnimationController controller;
Animation<double> scaleAnimation;

@override
void initState() {
super.initState();

controller =
AnimationController(vsync: this, duration: Duration(milliseconds: 200));
scaleAnimation = CurvedAnimation(parent: controller, curve: Curves.easeIn);

controller.addListener(() {
setState(() {});
});

controller.forward();
}

var developers = [
{
"name": "Steev James",
"email": "[email protected]",
"image": "assets/devs/steev.jpg"
},
{
"name": "Joyal A Johney",
"email": "[email protected]",
"image": "assets/devs/joyal.jpg"
},
{
"name": "Ajesh Kumar",
"email": "[email protected]",
"image": "assets/devs/ajesh.jpg"
},
{
"name": "Priyanga P Kini",
"email": "[email protected]",
"image": "assets/devs/priyanka.jpg"
}
];

@override
Widget build(BuildContext context) {
return ScaleTransition(
scale: scaleAnimation,
child: Dialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
insetPadding: EdgeInsets.all(13),
child: Container(
padding: EdgeInsets.all(20),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
),
child: SingleChildScrollView(
child: Column(
children: [
Text(
"Core Developers",
style: TextStyle(
fontSize: 20,
color: primaryColor,
fontFamily: pfontFamily,
),
),
SizedBox(height: 20),
Image.asset(
"assets/divider.png",
width: MediaQuery.of(context).size.width / 2,
),
SizedBox(height: 10),
Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[] +
List.generate(
developers.length,
(index) => Container(
margin: EdgeInsets.only(top: 5, left: 5),
// color: Colors.red,
child: ListTile(
title: Text(developers[index]["name"]),
subtitle: Text(developers[index]["email"]),
dense: true,
leading: CircleAvatar(
backgroundImage: AssetImage(
developers[index]["image"],
),
),
),
),
) +
[SizedBox(height: 10)],
)
],
),
),
),
),
);
}
}
41 changes: 28 additions & 13 deletions lib/UI/Screens/HomePage/Widgets/Drawer/drawer.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// import 'package:excelapp/UI/Components/AlertDialog/alertDialog.dart';
// import 'package:excelapp/UI/Screens/CampusAmbassador/campusAmbassadorMain.dart';
// import 'package:excelapp/UI/Components/DeleteRegistrations/deleteRegistrations.dart';
import 'package:excelapp/UI/Screens/HomePage/Widgets/Drawer/DevCredits/devCredits.dart';
import 'package:excelapp/UI/constants.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:social_share/social_share.dart';
import 'package:excelapp/UI/Screens/Results/results.dart';
// import 'package:excelapp/UI/Screens/Results/results.dart';

class CustomDrawer extends StatelessWidget {
@override
Expand Down Expand Up @@ -77,18 +78,19 @@ class CustomDrawer extends StatelessWidget {
// },
// ),

DrawerOption(
text: "Results",
icon: Icons.emoji_flags,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ResultsPage(),
),
);
},
),
// DrawerOption(
// text: "Results",
// icon: Icons.emoji_flags,
// onPressed: () {
// Navigator.pop(context);
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => ResultsPage(),
// ),
// );
// },
// ),

DrawerOption(
text: "Excel Website",
Expand Down Expand Up @@ -118,6 +120,19 @@ class CustomDrawer extends StatelessWidget {
launch("https://linktr.ee/excelmec");
},
),
DrawerOption(
text: "Developer Credits",
icon: Icons.code,
onPressed: () {
Navigator.pop(context);
showDialog(
context: context,
builder: (BuildContext context) {
return DevCredits();
},
);
},
),
DrawerOption(
text: "Share",
icon: Icons.share,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class ScheduleEvent extends StatelessWidget {
margin: EdgeInsets.fromLTRB(0, 5, 0, 5),
child: ListTile(
dense: true,
isThreeLine: true,
title: Text(eventSchedule.name ?? ""),
leading: CachedNetworkImage(
imageUrl: eventSchedule.icon,
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: excelapp
description: The Official App of the tech fest of Govt. Model Engineering College.
version: 0.1.5+7
version: 0.1.6+8

environment:
sdk: ">=2.2.0 <3.0.0"
Expand Down Expand Up @@ -56,6 +56,7 @@ flutter:
- assets/introScreen/page3.png
- assets/introScreen/page4.png
- assets/icons/
- assets/devs/
# - assets/campusAmbassador/refer.png
# - assets/campusAmbassador/higher.png

Expand Down

0 comments on commit 6c0a67a

Please sign in to comment.