|
|
|
|
@ -134,7 +134,7 @@ class MainQueueScreen extends StatelessWidget {
|
|
|
|
|
Widget widget = const SizedBox();
|
|
|
|
|
// queuingViewModel.voiceCallTicket(ticketData: queuingViewModel.currentTickets.first.ticketModel);
|
|
|
|
|
if (queuingViewModel.currentTickets.isEmpty) {
|
|
|
|
|
screenConfigViewModel.createAutoTickets();
|
|
|
|
|
// screenConfigViewModel.createAutoTickets();
|
|
|
|
|
widget = noPatientInQueue();
|
|
|
|
|
} else if (screenConfigViewModel.globalConfigurationsModel.screenTypeEnum == ScreenTypeEnum.roomLevelScreen) {
|
|
|
|
|
widget = PriorityTickets(
|
|
|
|
|
@ -179,30 +179,35 @@ class MainQueueScreen extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getBody({required BuildContext context}) {
|
|
|
|
|
return Consumer<ScreenConfigViewModel>(builder: (
|
|
|
|
|
BuildContext context,
|
|
|
|
|
ScreenConfigViewModel screenConfigVM,
|
|
|
|
|
Widget? child,
|
|
|
|
|
) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: getFlexForScreenTypes(screenConfigVM),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
getWeatherWidget(screenConfigVM),
|
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
|
getPrayerWidget(screenConfigVM),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 12),
|
|
|
|
|
Expanded(flex: 10, child: dataContent(context: context)),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
return Consumer<ScreenConfigViewModel>(
|
|
|
|
|
builder: (
|
|
|
|
|
BuildContext context,
|
|
|
|
|
ScreenConfigViewModel screenConfigVM,
|
|
|
|
|
Widget? child,
|
|
|
|
|
) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: getFlexForScreenTypes(screenConfigVM),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
getWeatherWidget(screenConfigVM),
|
|
|
|
|
const SizedBox(width: 20),
|
|
|
|
|
getPrayerWidget(screenConfigVM),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 12),
|
|
|
|
|
Expanded(flex: 10, child: dataContent(context: context)),
|
|
|
|
|
if (!screenConfigVM.globalConfigurationsModel.isWeatherReq && !screenConfigVM.globalConfigurationsModel.isPrayerTimeReq) ...[
|
|
|
|
|
const SizedBox(height: 100),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|