Skip to content

Commit

Permalink
changed the ui of hospital info and doctor's dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanhande11 committed Dec 20, 2020
1 parent e23be2b commit ba72f6c
Show file tree
Hide file tree
Showing 6 changed files with 511 additions and 385 deletions.
25 changes: 12 additions & 13 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,26 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

void main() async{
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}

class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return StreamProvider<MyUser>.value(
value: AuthServices().user,
child:MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: Wrapper(),
)
);
value: AuthServices().user,
child: MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.indigo,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: Wrapper(),
));
}
}
213 changes: 132 additions & 81 deletions lib/pages/doctorDashboard/doctorDashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,90 +112,141 @@ class _DoctorDashboardState extends State<DoctorDashboard> {
SizedBox(
height: 30,
),
Center(
child: Text(
'Dr. ' + doctor.displayName,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
doctor.educationalQualification,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
doctor.bio,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
'Address : ',
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
doctor.address,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
'Timing : ',
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
doctor.timing,
style: TextStyle(
fontSize: 24,
),
Card(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
children: [
Center(
child: Text(
'Dr. ' + doctor.displayName,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
doctor.educationalQualification,
style: TextStyle(
fontSize: 24,
),
),
),
SizedBox(
height: 30,
),
Text(
doctor.bio,
style: TextStyle(
fontSize: 20,
),
),
],
),
),
)),
SizedBox(
height: 30,
height: 10,
),
Center(
child: Text(
'Fees : ' + doctor.fee + ' rs. at clinic',
style: TextStyle(
fontSize: 24,
),
),
Card(
child: Padding(
padding: EdgeInsets.all(20),
child: Column(
children: [
Center(
child: Text(
'Address : ',
style: TextStyle(
fontSize: 24,
color: Colors.black54,
),
),
),
SizedBox(
height: 10,
),
Center(
child: Text(
doctor.address,
style: TextStyle(
fontSize: 20,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
'Timing : ',
style: TextStyle(
fontSize: 24,
color: Colors.black54,
),
),
),
SizedBox(
height: 10,
),
Center(
child: Text(
doctor.timing,
style: TextStyle(
fontSize: 20,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
'UPI Id : ',
style: TextStyle(
fontSize: 24,
color: Colors.black54,
),
),
),
SizedBox(
height: 10,
),
Center(
child: Text(
doctor.paymentMethod,
style: TextStyle(
fontSize: 20,
),
),
),
SizedBox(
height: 30,
),
Center(
child: Text(
'Fees : ',
style: TextStyle(
fontSize: 24,
color: Colors.black54,
),
),
),
SizedBox(
height: 10,
),
Center(
child: Text(
doctor.fee + ' rs. at clinic',
style: TextStyle(
fontSize: 20,
),
),
),
],
)),
),
SizedBox(
height: 70,
Expand Down

0 comments on commit ba72f6c

Please sign in to comment.