hot fixes on doctor replay and schedule

merge-requests/505/head
Mohammad Aljammal 5 years ago
parent 255a13a918
commit f4d1aac5e6

@ -86,8 +86,8 @@ class BaseAppClient {
print("URL : $url");
print("Body : ${json.encode(body)}");
String request= json.encode(body);
var asd="";
String request= json.encode(body);
var asd="";
if (await Helpers.checkConnection()) {

@ -4,6 +4,9 @@ class ListDoctorWorkingHoursTable {
DateTime date;
String dayName;
String workingHours;
String projectName;
String clinicName;
ListDoctorWorkingHoursTable({
this.date,
@ -15,6 +18,8 @@ class ListDoctorWorkingHoursTable {
date = Helpers.convertStringToDate(json['Date']);
dayName = json['DayName'];
workingHours = json['WorkingHours'];
projectName = json['ProjectName'];
clinicName = json['ClinicName'];
}
Map<String, dynamic> toJson() {
@ -22,6 +27,8 @@ class ListDoctorWorkingHoursTable {
data['Date'] = this.date;
data['DayName'] = this.dayName;
data['WorkingHours'] = this.workingHours;
data['ProjectName'] = this.projectName;
data['ClinicName'] = this.clinicName;
return data;
}

@ -63,6 +63,7 @@ class _DoctorReplyWidgetState extends State<DoctorReplyWidget> {
),
),
Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
AppText(
DateUtils.getDateTimeFromServerFormat(

@ -59,7 +59,7 @@ class MyScheduleWidget extends StatelessWidget {
if (DateUtils.isToday(workingHoursTable.date))
AppText(
"Today",
fontSize: 2.5 * SizeConfig.textMultiplier,
fontSize: 1.8 * SizeConfig.textMultiplier,
fontFamily: 'Poppins',
color: Colors.green[500],
// fontSize: 18
@ -72,10 +72,17 @@ class MyScheduleWidget extends StatelessWidget {
children: workingHours.map((work) {
return Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 5,
),
if(workingHoursTable.clinicName!=null)
AppText(
workingHoursTable.clinicName??"",
fontSize: 15,
fontWeight: FontWeight.w700,
),
Container(
width: MediaQuery.of(context).size.width*0.55,
child: AppText(
@ -83,7 +90,13 @@ class MyScheduleWidget extends StatelessWidget {
fontSize: 15,
fontWeight: FontWeight.w300,
),
)
),
if(workingHoursTable.projectName!=null)
AppText(
workingHoursTable.projectName??"",
fontSize: 15,
fontWeight: FontWeight.w700,
),
],
),
);

Loading…
Cancel
Save