|
|
|
|
@ -28,6 +28,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
final bool isDartIcon;
|
|
|
|
|
final IconData dartIcon;
|
|
|
|
|
final bool isFromLiveCare;
|
|
|
|
|
final Color color;
|
|
|
|
|
|
|
|
|
|
PatientProfileButton({
|
|
|
|
|
Key key,
|
|
|
|
|
@ -47,7 +48,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
this.isDischargedPatient = false,
|
|
|
|
|
this.isSelectInpatient = false,
|
|
|
|
|
this.isDartIcon = false,
|
|
|
|
|
this.dartIcon, this.isFromLiveCare = false,
|
|
|
|
|
this.dartIcon, this.isFromLiveCare = false, this.color,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -73,7 +74,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Container(
|
|
|
|
|
child: isDartIcon ? Icon(
|
|
|
|
|
dartIcon, size: 30, color: Color(0xFF333C45),) : new Image
|
|
|
|
|
dartIcon, size: 30, color: color?? Color(0xFF333C45),) : new Image
|
|
|
|
|
.asset(
|
|
|
|
|
url + icon,
|
|
|
|
|
width: 30,
|
|
|
|
|
@ -93,14 +94,14 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
!projectsProvider.isArabic ? this.nameLine1 : nameLine2,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
color: color??Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
!projectsProvider.isArabic ? this.nameLine2 : nameLine1,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
color: color??Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
@ -116,7 +117,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(0xffBBBBBB),
|
|
|
|
|
color: color??Color(0xffBBBBBB),
|
|
|
|
|
width: 1,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
|