|
|
|
|
@ -48,7 +48,9 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
this.isDischargedPatient = false,
|
|
|
|
|
this.isSelectInpatient = false,
|
|
|
|
|
this.isDartIcon = false,
|
|
|
|
|
this.dartIcon, this.isFromLiveCare = false, this.color,
|
|
|
|
|
this.dartIcon,
|
|
|
|
|
this.isFromLiveCare = false,
|
|
|
|
|
this.color,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -73,38 +75,40 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
child: isDartIcon ? Icon(
|
|
|
|
|
dartIcon, size: 30, color: color?? Color(0xFF333C45),) : new Image
|
|
|
|
|
.asset(
|
|
|
|
|
url + icon,
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
),
|
|
|
|
|
child: isDartIcon
|
|
|
|
|
? Icon(
|
|
|
|
|
dartIcon,
|
|
|
|
|
size: 30,
|
|
|
|
|
color: color ?? Color(0xFF333C45),
|
|
|
|
|
)
|
|
|
|
|
: new Image.asset(
|
|
|
|
|
url + icon,
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
alignment: projectsProvider.isArabic
|
|
|
|
|
? Alignment.topRight
|
|
|
|
|
: Alignment.topLeft,
|
|
|
|
|
alignment: projectsProvider.isArabic ? Alignment.topRight : Alignment.topLeft,
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
!projectsProvider.isArabic ? this.nameLine1 : nameLine2,
|
|
|
|
|
color: color??Color(0xFF2B353E),
|
|
|
|
|
color: color ?? Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.35,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
!projectsProvider.isArabic ? this.nameLine2 : nameLine1,
|
|
|
|
|
color: color??Color(0xFF2B353E),
|
|
|
|
|
color: color ?? Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.35,
|
|
|
|
|
),
|
|
|
|
|
if (isLoading) DrAppCircularProgressIndeicator()
|
|
|
|
|
],
|
|
|
|
|
@ -117,7 +121,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
color: isDisable ? Colors.grey.withOpacity(0.4) : Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10)),
|
|
|
|
|
border: Border.fromBorderSide(BorderSide(
|
|
|
|
|
color: color??Color(0xffBBBBBB),
|
|
|
|
|
color: color ?? Color(0xffBBBBBB),
|
|
|
|
|
width: 1,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
@ -145,7 +149,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
'isInpatient': isInPatient,
|
|
|
|
|
'isDischargedPatient': isDischargedPatient,
|
|
|
|
|
'isSelectInpatient': isSelectInpatient,
|
|
|
|
|
"isFromLiveCare":isFromLiveCare
|
|
|
|
|
"isFromLiveCare": isFromLiveCare
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|