|
|
|
@ -34,7 +34,14 @@ class MainQueueScreen extends StatelessWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (queuingViewModel.currentTickets.isEmpty) {
|
|
|
|
if (queuingViewModel.currentTickets.isEmpty) {
|
|
|
|
bool isForRoomLevel = screenConfigViewModel.globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen;
|
|
|
|
bool isForRoomLevel = screenConfigViewModel.globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen;
|
|
|
|
widget = noPatientInQueue(text: text, fontName: fontFamily, isForRoomLevel: isForRoomLevel, counterNo: screenConfigViewModel.globalConfigurationsModel.roomNo ?? 0);
|
|
|
|
widget = noPatientInQueue(
|
|
|
|
|
|
|
|
text: text,
|
|
|
|
|
|
|
|
fontName: fontFamily,
|
|
|
|
|
|
|
|
isForRoomLevel: isForRoomLevel,
|
|
|
|
|
|
|
|
isRoomNoRequired: screenConfigViewModel.globalConfigurationsModel.isRoomNoRequired ?? true,
|
|
|
|
|
|
|
|
counterNo: screenConfigViewModel.globalConfigurationsModel.roomNo ?? 0,
|
|
|
|
|
|
|
|
roomText: screenConfigViewModel.globalConfigurationsModel.roomText ?? AppStrings.counterNo,
|
|
|
|
|
|
|
|
);
|
|
|
|
} else if (screenConfigViewModel.globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen) {
|
|
|
|
} else if (screenConfigViewModel.globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen) {
|
|
|
|
widget = Row(
|
|
|
|
widget = Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
@ -43,7 +50,11 @@ class MainQueueScreen extends StatelessWidget {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
counterNoText(screenConfigViewModel.globalConfigurationsModel.roomNo ?? 0),
|
|
|
|
counterNoText(
|
|
|
|
|
|
|
|
counterNo: screenConfigViewModel.globalConfigurationsModel.roomNo ?? 0,
|
|
|
|
|
|
|
|
roomText: screenConfigViewModel.globalConfigurationsModel.roomText ?? AppStrings.counterNo,
|
|
|
|
|
|
|
|
isRoomNoRequired: screenConfigViewModel.globalConfigurationsModel.isRoomNoRequired ?? true,
|
|
|
|
|
|
|
|
),
|
|
|
|
PriorityTickets(
|
|
|
|
PriorityTickets(
|
|
|
|
tickets: [queuingViewModel.currentTickets.first],
|
|
|
|
tickets: [queuingViewModel.currentTickets.first],
|
|
|
|
globalConfigurationsModel: screenConfigViewModel.globalConfigurationsModel,
|
|
|
|
globalConfigurationsModel: screenConfigViewModel.globalConfigurationsModel,
|
|
|
|
|