|
|
|
|
@ -82,7 +82,7 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
String getFormattedTicket(String ticketNo, bool isClinicAdded) {
|
|
|
|
|
if (isClinicAdded) {
|
|
|
|
|
var formattedString = ticketNo.split(" ");
|
|
|
|
|
return formattedString[0] + " " + formattedString[1];
|
|
|
|
|
return "${formattedString[0]} ${formattedString[1]}";
|
|
|
|
|
}
|
|
|
|
|
return ticketNo;
|
|
|
|
|
}
|
|
|
|
|
@ -94,19 +94,21 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
BlinkText(getFormattedTicket(ticketNo, isClinicAdded),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 10,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
height: 0.5,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
beginColor: Colors.black,
|
|
|
|
|
endColor: blink ? Colors.black.withOpacity(0.1) : Colors.black,
|
|
|
|
|
// endColor: blink ? AppGlobal.appRedColor : Colors.black,
|
|
|
|
|
times: 0,
|
|
|
|
|
duration: const Duration(seconds: 1)),
|
|
|
|
|
const SizedBox(height: 13),
|
|
|
|
|
BlinkText(
|
|
|
|
|
getFormattedTicket(ticketNo, isClinicAdded),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 10,
|
|
|
|
|
letterSpacing: -1,
|
|
|
|
|
height: 0.5,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
beginColor: Colors.black,
|
|
|
|
|
endColor: blink ? Colors.black.withOpacity(0.1) : Colors.black,
|
|
|
|
|
// endColor: blink ? AppGlobal.appRedColor : Colors.black,
|
|
|
|
|
times: 0,
|
|
|
|
|
duration: const Duration(seconds: 1),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 25),
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: callConfig.textDirection,
|
|
|
|
|
child: Row(
|
|
|
|
|
@ -114,8 +116,8 @@ class TicketItem extends StatelessWidget {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: EdgeInsets.only(bottom: callType == CallType.vitalSign ? 0 : 8),
|
|
|
|
|
child: callType.icon(SizeConfig.getHeightMultiplier() * 3),
|
|
|
|
|
padding: EdgeInsets.only(bottom: callType == CallType.vitalSign ? 8 : 8),
|
|
|
|
|
child: callType.icon(SizeConfig.getHeightMultiplier() * 2),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(width: 13),
|
|
|
|
|
AppText(
|
|
|
|
|
@ -160,7 +162,9 @@ Widget noPatientInQueue({required ScreenOrientationEnum screenOrientationEnum})
|
|
|
|
|
child: AppText(
|
|
|
|
|
"Awaiting Patients Arrival",
|
|
|
|
|
fontFamily: 'Poppins-SemiBold.ttf',
|
|
|
|
|
fontSize: (screenOrientationEnum == ScreenOrientationEnum.portraitDown || screenOrientationEnum == ScreenOrientationEnum.portraitUp) ? SizeConfig.getWidthMultiplier() * 9 : SizeConfig.getWidthMultiplier() * 7,
|
|
|
|
|
fontSize: (screenOrientationEnum == ScreenOrientationEnum.portraitDown || screenOrientationEnum == ScreenOrientationEnum.portraitUp)
|
|
|
|
|
? SizeConfig.getWidthMultiplier() * 9
|
|
|
|
|
: SizeConfig.getWidthMultiplier() * 7,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -356,5 +360,7 @@ Widget priorityTicketsWithSideList({required List<PatientTicketModel> tickets, r
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
];
|
|
|
|
|
return (appProvider.currentScreenRotation == ScreenOrientationEnum.portraitUp || appProvider.currentScreenRotation == ScreenOrientationEnum.portraitDown) ? Row(children: children) : Column(children: children);
|
|
|
|
|
return (appProvider.currentScreenRotation == ScreenOrientationEnum.portraitUp || appProvider.currentScreenRotation == ScreenOrientationEnum.portraitDown)
|
|
|
|
|
? Row(children: children)
|
|
|
|
|
: Column(children: children);
|
|
|
|
|
}
|
|
|
|
|
|