|
|
|
|
@ -2,6 +2,7 @@ import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/avatar/large_avatar.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -32,6 +33,7 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
final String vaccineName;
|
|
|
|
|
final bool isSickLeave;
|
|
|
|
|
final int sickLeaveStatus;
|
|
|
|
|
final int projectID;
|
|
|
|
|
|
|
|
|
|
DoctorCard(
|
|
|
|
|
{this.name,
|
|
|
|
|
@ -51,7 +53,8 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
this.vaccineName = "",
|
|
|
|
|
this.isParentAppointment = false,
|
|
|
|
|
this.isSickLeave = false,
|
|
|
|
|
this.sickLeaveStatus = 0});
|
|
|
|
|
this.sickLeaveStatus = 0,
|
|
|
|
|
this.projectID = 0});
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
|
|
@ -87,11 +90,13 @@ class DoctorCard extends StatelessWidget {
|
|
|
|
|
decoration: isShowInOutPatient
|
|
|
|
|
? BoxDecoration(
|
|
|
|
|
//Colors.red[900] Color(0xff404545)
|
|
|
|
|
color: isLiveCareAppointment
|
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
|
: !isInOutPatient
|
|
|
|
|
? Color(0xffD02127)
|
|
|
|
|
: Color(0xffa9a089),
|
|
|
|
|
color: Utils.isHMCProject(projectViewModel, projectID)
|
|
|
|
|
? Color(0xff3FACC8)
|
|
|
|
|
: isLiveCareAppointment
|
|
|
|
|
? Color(0xff2E303A)
|
|
|
|
|
: !isInOutPatient
|
|
|
|
|
? Color(0xffD02127)
|
|
|
|
|
: Color(0xffa9a089),
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(10),
|
|
|
|
|
bottomLeft: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(10),
|
|
|
|
|
|