|
|
|
|
@ -58,14 +58,14 @@ class PriorityTickets extends StatelessWidget {
|
|
|
|
|
return [_buildPrimaryTicket(context, tickets[0], isFullWidth: true)];
|
|
|
|
|
case 2:
|
|
|
|
|
return [
|
|
|
|
|
Expanded(child: _buildPrimaryTicket(context, tickets[0], isHalf: true)),
|
|
|
|
|
Expanded(child: _buildPrimaryTicket(context, tickets[0], isFullWidth: true)),
|
|
|
|
|
globalConfigurationsModel.isFromTakhasusiMain ? SizedBox(height: SizeConfig.getHeightMultiplier()! * 0.2) : SizedBox(height: SizeConfig.getHeightMultiplier()! * 0.5),
|
|
|
|
|
Expanded(child: _buildSecondaryTicket(context, tickets[1], isHalf: true)),
|
|
|
|
|
];
|
|
|
|
|
case 3:
|
|
|
|
|
case 4:
|
|
|
|
|
return [
|
|
|
|
|
Expanded(child: _buildPrimaryTicket(context, tickets[0], isHalf: true)),
|
|
|
|
|
Expanded(child: _buildPrimaryTicket(context, tickets[0], isFullWidth: true)),
|
|
|
|
|
globalConfigurationsModel.isFromTakhasusiMain ? SizedBox(height: SizeConfig.getHeightMultiplier()! * 0.2) : SizedBox(height: SizeConfig.getHeightMultiplier()! * 0.5),
|
|
|
|
|
Expanded(child: _buildOtherTicketsRow(context, noOfTicketsToSkipFromStart: 1, isHalf: true)),
|
|
|
|
|
];
|
|
|
|
|
@ -108,8 +108,6 @@ class PriorityTickets extends StatelessWidget {
|
|
|
|
|
roomNo: ticket.ticketModel?.roomNo ?? '',
|
|
|
|
|
roomText: _getRoomText(),
|
|
|
|
|
roomTextAr: _getRoomTextAr(),
|
|
|
|
|
callTypeEnum: ticket.ticketModel?.callTypeEnum ?? CallTypeEnum.vitalSign,
|
|
|
|
|
isClinicAdded: false,
|
|
|
|
|
callTypeEnum: ticket.ticketModel?.callTypeEnum ?? CallTypeEnum.none,
|
|
|
|
|
textDirection: globalConfigurationsModel.textDirection,
|
|
|
|
|
screenTypeEnum: globalConfigurationsModel.screenTypeEnum,
|
|
|
|
|
@ -117,30 +115,32 @@ class PriorityTickets extends StatelessWidget {
|
|
|
|
|
globalConfigurationsModel: globalConfigurationsModel,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (isHalf) {
|
|
|
|
|
log("isFullWidth: ${isFullWidth} and _buildPrimaryTicket");
|
|
|
|
|
|
|
|
|
|
if (isFullWidth) {
|
|
|
|
|
return Center(
|
|
|
|
|
child: ConstrainedBox(
|
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
|
maxWidth: MediaQuery.of(context).size.width * 0.7, // 60% of screen width
|
|
|
|
|
minHeight: SizeConfig.getHeightMultiplier() * 2.2, // Minimum height
|
|
|
|
|
maxWidth: MediaQuery.of(context).size.width * 0.6, // 60% of screen width
|
|
|
|
|
minHeight: SizeConfig.getHeightMultiplier() * 2, // Minimum height
|
|
|
|
|
),
|
|
|
|
|
child: Transform.scale(
|
|
|
|
|
scale: _getTicketScale(),
|
|
|
|
|
scale: _getTicketScale() + 0.2,
|
|
|
|
|
child: primaryCallingCard,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isFullWidth) {
|
|
|
|
|
if (isHalf) {
|
|
|
|
|
return Center(
|
|
|
|
|
child: ConstrainedBox(
|
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
|
maxWidth: MediaQuery.of(context).size.width * 0.6, // 60% of screen width
|
|
|
|
|
minHeight: SizeConfig.getHeightMultiplier() * 2, // Minimum height
|
|
|
|
|
minHeight: SizeConfig.getHeightMultiplier() * 2.2, // Minimum height
|
|
|
|
|
),
|
|
|
|
|
child: Transform.scale(
|
|
|
|
|
scale: _getTicketScale() + 0.2,
|
|
|
|
|
scale: _getTicketScale(),
|
|
|
|
|
child: primaryCallingCard,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -158,9 +158,7 @@ class PriorityTickets extends StatelessWidget {
|
|
|
|
|
roomNo: ticket.ticketModel?.roomNo ?? '',
|
|
|
|
|
roomText: _getRoomText(),
|
|
|
|
|
roomTextAr: _getRoomTextAr(),
|
|
|
|
|
isClinicAdded: false,
|
|
|
|
|
callTypeEnum: ticket.ticketModel?.callTypeEnum ?? CallTypeEnum.none,
|
|
|
|
|
callTypeEnum: ticket.ticketModel?.callTypeEnum ?? CallTypeEnum.vitalSign,
|
|
|
|
|
textDirection: globalConfigurationsModel.textDirection,
|
|
|
|
|
screenTypeEnum: globalConfigurationsModel.screenTypeEnum,
|
|
|
|
|
langTypeEnum: globalConfigurationsModel.screenLanguageEnum,
|
|
|
|
|
@ -198,7 +196,7 @@ class PriorityTickets extends StatelessWidget {
|
|
|
|
|
return globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen
|
|
|
|
|
? 1.5
|
|
|
|
|
: globalConfigurationsModel.isFromTakhasusiMain
|
|
|
|
|
? 0.9
|
|
|
|
|
? 0.7
|
|
|
|
|
: 1.2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|