add simibold

merge-requests/915/head
Elham Rababh 4 years ago
parent 52bd1511e8
commit 98f6d63fcd

@ -96,14 +96,8 @@ class PatientCard extends StatelessWidget {
patientInfo.patientStatusType == 43 patientInfo.patientStatusType == 43
? Row( ? Row(
children: [ children: [
AppText( PatientStatus(label:TranslationBase.of(context)
TranslationBase.of(context) .arrivedP,color:AppGlobal.appGreenColor,),
.arrivedP,
color: AppGlobal.appGreenColor,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
SizedBox( SizedBox(
width: 8, width: 8,
), ),
@ -117,30 +111,18 @@ class PatientCard extends StatelessWidget {
SizedBox( SizedBox(
width: 8, width: 8,
), ),
AppText( PatientStatus(label:patientInfo.status == 2
patientInfo.status == 2
? 'Confirmed' ? 'Confirmed'
: 'Booked', : 'Booked',color: patientInfo.status == 2
color: patientInfo.status == 2
? AppGlobal.appGreenColor ? AppGlobal.appGreenColor
: Colors.grey, : Colors.grey,),
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
], ],
) )
: patientInfo.patientStatusType == 42 : patientInfo.patientStatusType == 42
? Row( ? Row(
children: [ children: [
AppText( PatientStatus(label:TranslationBase.of(context)
TranslationBase.of(context) .notArrived,color:Colors.red[800],),
.notArrived,
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
SizedBox( SizedBox(
width: 8, width: 8,
), ),
@ -154,17 +136,10 @@ class PatientCard extends StatelessWidget {
SizedBox( SizedBox(
width: 8, width: 8,
), ),
AppText( PatientStatus(label:patientInfo.status == 2 ? 'Confirmed'
patientInfo.status == 2 : 'Booked',color:patientInfo.status == 2
? 'Confirmed'
: 'Booked',
color: patientInfo.status == 2
? AppGlobal.appGreenColor ? AppGlobal.appGreenColor
: Colors.grey, : Colors.grey,)
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
], ],
) )
: !isFromSearch && : !isFromSearch &&
@ -173,14 +148,8 @@ class PatientCard extends StatelessWidget {
null null
? Row( ? Row(
children: [ children: [
AppText( PatientStatus(label:TranslationBase.of(context)
TranslationBase.of(context) .notArrived,color:Colors.red[800],),
.notArrived,
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
SizedBox( SizedBox(
width: 8, width: 8,
), ),
@ -194,18 +163,13 @@ class PatientCard extends StatelessWidget {
SizedBox( SizedBox(
width: 8, width: 8,
), ),
AppText(
patientInfo.status == 2 PatientStatus(label:patientInfo.status == 2
? 'Booked' ? 'Booked'
: 'Confirmed', : 'Confirmed',color:
color:
patientInfo.status == 2 patientInfo.status == 2
? Colors.grey ? Colors.grey
: AppGlobal.appGreenColor, : AppGlobal.appGreenColor,)
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
)
], ],
) )
: SizedBox(), : SizedBox(),
@ -252,13 +216,7 @@ class PatientCard extends StatelessWidget {
SizedBox( SizedBox(
width: 12, width: 12,
), ),
AppText( PatientStatus(label:'My Patient',),
'My Patient',
color: AppGlobal.appGreenColor,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
], ],
), ),
Padding( Padding(
@ -270,13 +228,11 @@ class PatientCard extends StatelessWidget {
Expanded( Expanded(
flex: 2, flex: 2,
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.start, MainAxisAlignment.start,
children: [ children: [
Expanded( AppText(
// width: MediaQuery.of(context).size.width*0.51,
child: AppText(
isFromLiveCare isFromLiveCare
? Helpers.capitalize( ? Helpers.capitalize(
patientInfo.fullName) patientInfo.fullName)
@ -286,21 +242,24 @@ class PatientCard extends StatelessWidget {
Helpers.capitalize( Helpers.capitalize(
patientInfo.lastName)), patientInfo.lastName)),
fontSize: 16, fontSize: 16,
color: Color(0xff2e303a), color: Color(0xFF2E303A),
fontWeight: FontWeight.w700, fontWeight: FontWeight.w600,
fontFamily: 'Poppins', fontFamily: 'Poppins',
letterSpacing: -0.64,
textOverflow: TextOverflow.ellipsis, textOverflow: TextOverflow.ellipsis,
), ),
),
if (patientInfo.gender == 1) if (patientInfo.gender == 1)
Icon( Icon(
DoctorApp.male_2, DoctorApp.male_2,
color: Colors.blue, color: Colors.blue,
size: 18,
) )
else else
Icon( Icon(
DoctorApp.female_1, DoctorApp.female_1,
color: Colors.pink, color: Colors.pink,
size: 18,
), ),
if (isFromLiveCare) if (isFromLiveCare)
ShowTimer( ShowTimer(
@ -311,15 +270,17 @@ class PatientCard extends StatelessWidget {
Expanded( Expanded(
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
Expanded( Expanded(
child: Container( child: Container(
padding: EdgeInsets.only(top: 8),
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
child: AppText( child: AppText(
nationalityName.truncate(14), nationalityName.truncate(14),
fontWeight: FontWeight.bold, fontWeight: FontWeight.w600,
fontSize: 14, fontSize: 10,
color: Color(0xFF2E303A),
textOverflow: TextOverflow.ellipsis, textOverflow: TextOverflow.ellipsis,
), ),
), ),
@ -335,8 +296,8 @@ class PatientCard extends StatelessWidget {
null null
? patientInfo.nationalityFlagURL ? patientInfo.nationalityFlagURL
: '', : '',
height: 25, height: 16,
width: 30, width: 22,
errorWidget: errorWidget:
(context, url, error) => (context, url, error) =>
AppText( AppText(
@ -350,12 +311,12 @@ class PatientCard extends StatelessWidget {
) )
], ],
)), )),
Row(children: <Widget>[ SizedBox(height: 10,),
Column( Row(
mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: EdgeInsets.only(left: 12.0), padding: EdgeInsets.only(left: 12.0,top: 5),
child: Container( child: Container(
width: 60, width: 60,
height: 60, height: 60,
@ -367,8 +328,6 @@ class PatientCard extends StatelessWidget {
), ),
), ),
), ),
],
),
SizedBox( SizedBox(
width: 10, width: 10,
), ),
@ -378,7 +337,9 @@ class PatientCard extends StatelessWidget {
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
// SizedBox(height: 10,),
CustomRow( CustomRow(
label: label:
TranslationBase.of(context).fileNumber, TranslationBase.of(context).fileNumber,
@ -496,3 +457,21 @@ class PatientCard extends StatelessWidget {
)); ));
} }
} }
class PatientStatus extends StatelessWidget {
PatientStatus({
Key key, this.label, this.color,
}) : super(key: key);
final String label;final Color color;
@override
Widget build(BuildContext context) {
return AppText(
label,
color: color??AppGlobal.appGreenColor,
fontWeight: FontWeight.w600,
fontFamily: 'Poppins',
fontSize: 10,
);
}
}

@ -24,17 +24,18 @@ class CustomRow extends StatelessWidget {
children: [ children: [
AppText( AppText(
label, label,
fontSize: labelSize??SizeConfig.getTextMultiplierBasedOnWidth() * 2.8, fontSize: labelSize??SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
color: Color(0xFF575757), color: Color(0xFF575757),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
letterSpacing: -0.4,
), ),
SizedBox( SizedBox(
width: 1, width: 1,
), ),
AppText( AppText(
value, value,
fontSize: valueSize??SizeConfig.getTextMultiplierBasedOnWidth() * 3, fontSize: valueSize??SizeConfig.getTextMultiplierBasedOnWidth() * 2.9,
color: Color(0xFF2E303A), color: Color(0xFF2B353E),
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
isCopyable: isCopyable, isCopyable: isCopyable,
), ),

File diff suppressed because it is too large Load Diff

@ -152,6 +152,8 @@ flutter:
weight: 400 weight: 400
- asset: assets/fonts/Poppins/Poppins-Medium.ttf - asset: assets/fonts/Poppins/Poppins-Medium.ttf
weight: 500 weight: 500
- asset: assets/fonts/Poppins/Poppins-SemiBold.ttf
weight: 600
- asset: assets/fonts/Poppins/Poppins-Bold.ttf - asset: assets/fonts/Poppins/Poppins-Bold.ttf
weight: 700 weight: 700
- asset: assets/fonts/Poppins/Poppins-Bold.ttf - asset: assets/fonts/Poppins/Poppins-Bold.ttf

Loading…
Cancel
Save