|
|
|
|
@ -24,6 +24,7 @@ class QueueItemCallingCard extends StatelessWidget {
|
|
|
|
|
final CallTypeEnum callTypeEnum;
|
|
|
|
|
final ScreenTypeEnum screenTypeEnum;
|
|
|
|
|
final LanguageEnum langTypeEnum;
|
|
|
|
|
final QTypeEnum qTypeEnum;
|
|
|
|
|
final bool isSingleTicket;
|
|
|
|
|
|
|
|
|
|
const QueueItemCallingCard({
|
|
|
|
|
@ -39,6 +40,7 @@ class QueueItemCallingCard extends StatelessWidget {
|
|
|
|
|
required this.callTypeEnum,
|
|
|
|
|
required this.screenTypeEnum,
|
|
|
|
|
required this.langTypeEnum,
|
|
|
|
|
required this.qTypeEnum,
|
|
|
|
|
this.isGradientRequired = false,
|
|
|
|
|
this.isBorderRequired = false,
|
|
|
|
|
this.isSingleTicket = false,
|
|
|
|
|
@ -59,7 +61,7 @@ class QueueItemCallingCard extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final text = "${callTypeEnum.getMessageByCallTypeForEnglish(globalConfigurationsModel, isListView: false)} | $roomText $roomNo";
|
|
|
|
|
final text = callTypeEnum.getMessageByCallTypeForEnglish(globalConfigurationsModel, isListView: false) + (qTypeEnum == QTypeEnum.appointment ? ("| $roomText $roomNo") : "");
|
|
|
|
|
return Stack(
|
|
|
|
|
children: [
|
|
|
|
|
customShadowSmoothContainerWithBackground(
|
|
|
|
|
@ -82,7 +84,7 @@ class QueueItemCallingCard extends StatelessWidget {
|
|
|
|
|
left: textDirection == TextDirection.rtl ? SizeConfig.getWidthMultiplier() * 3.5 : 0,
|
|
|
|
|
right: textDirection == TextDirection.ltr ? SizeConfig.getWidthMultiplier() * 3.5 : 0,
|
|
|
|
|
),
|
|
|
|
|
child: callTypeEnum.getIconByCallType(SizeConfig.getHeightMultiplier() * 0.5),
|
|
|
|
|
child: callTypeEnum.getIconByCallType(SizeConfig.getHeightMultiplier() * 0.5, qTypeEnum),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: SizeConfig.getHeightMultiplier()! * 0.15),
|
|
|
|
|
IntrinsicWidth(
|
|
|
|
|
|