Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
anishsreenivas82 committed Jul 30, 2021
1 parent 24bc2db commit f76768e
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
Binary file added assets/capture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion lib/pages/donor_dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,28 @@ class _DonorState extends State<Donor> {
padding: EdgeInsets.zero,
children: [
DrawerHeader(
child: Text('Here 4 Hygiene'),

child: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [Image.asset('assets/capture.png',) ,Text('Here 4 Hygiene',style: TextStyle(fontSize: 15, color: Colors.black),)]),
decoration: BoxDecoration(color: Colors.blue),

),
ListTile(
title: Text('Profile'),
leading: Icon(Icons.person),
),
ListTile(
title: Text('Location'),
leading: Icon(Icons.map_outlined),
),
ListTile(
title: Text('Terms and Conditions'),
leading: Icon(Icons.checklist)
),
ListTile(
title: Text('Logout'),
leading: Icon(Icons.logout),

onTap: () {
FirebaseAuth.instance.signOut();
Navigator.push(context,
Expand Down
8 changes: 8 additions & 0 deletions lib/pages/pending_orders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@ class _PendingOrdersState extends State<PendingOrders> {
width * 0.01, height * 0.01, width * 0.01, height * 0.01),
child: Container(
child: new Card(

elevation: 20,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(width*0.1),
),
child: InkWell(
onTap: (){
generatedID =
document.id.toString() + uidDonor.toString();
Navigator.push(context,
MaterialPageRoute(builder: (context) => Qrcode()));

},
child: Padding(
padding: EdgeInsets.all(width*0.04),
child: Column(
Expand Down
14 changes: 12 additions & 2 deletions lib/pages/shelter_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,24 @@ class _Shelter_pageState extends State<Shelter_page> {
padding: EdgeInsets.zero,
children: [
DrawerHeader(
child: Text('Here 4 Hygiene'),

child: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [Image.asset('assets/capture.png',) ,Text('Here 4 Hygiene',style: TextStyle(fontSize: 15, color: Colors.black),)]),
decoration: BoxDecoration(color: Colors.blue),

),
ListTile(
title: Text('Profile'),
leading: Icon(Icons.person),

),
ListTile(
title: Text('Location'),
leading: Icon(Icons.map_outlined),

),
ListTile(
title: Text('Terms and Conditions'),
leading: Icon(Icons.checklist)
),
ListTile(
title: Text('Logout'),
Expand Down
16 changes: 14 additions & 2 deletions lib/pages/volunteer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart';

import 'package:flutterlogindesign/pages/splash_screen.dart';
import 'package:flutterlogindesign/pages/verification.dart';
import 'package:lottie/lottie.dart';

FirebaseAuth auth = FirebaseAuth.instance;
var uidVolunteer = auth.currentUser.uid;
Expand Down Expand Up @@ -161,7 +162,7 @@ class _VolunteerState extends State<Volunteer> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,

children: [
children: [Lottie.asset('assets/lottie/lottie.json'),
ElevatedButton(child:Text('QR Scanner',style: TextStyle(color:Colors.white,fontSize: 20)),onPressed: () {

Navigator.push(context,
Expand Down Expand Up @@ -274,13 +275,24 @@ class _VolunteerState extends State<Volunteer> {
padding: EdgeInsets.zero,
children: [
DrawerHeader(
child: Text('Here 4 Hygiene'),

child: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [Image.asset('assets/capture.png',) ,Text('Here 4 Hygiene',style: TextStyle(fontSize: 15, color: Colors.black),)]),
decoration: BoxDecoration(color: Colors.blue),

),
ListTile(
title: Text('Profile'),
leading: Icon(Icons.person)
),
ListTile(
title: Text('Location'),
leading: Icon(Icons.map_outlined),
),
ListTile(
title: Text('Terms and Conditions'),
leading: Icon(Icons.checklist)
),
ListTile(
title: Text('Logout'),
leading: Icon(Icons.logout),
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ flutter:
- assets/3.png
- assets/do.png
- assets/lottie/lottie.json
- assets/capture.png



Expand Down

0 comments on commit f76768e

Please sign in to comment.