faiz_kiosk
FaizHashmiCS22 1 year ago
parent 68ee656857
commit 962a2af9ff

@ -54,7 +54,8 @@ class QueuingViewModel extends ChangeNotifier {
} }
Future<void> onHubConfigCall(var response) async { Future<void> onHubConfigCall(var response) async {
log("onHubConnected: $response"); log("onHubConfigCall: $response");
// TODO:
// ScreenConfigViewModel screenConfigViewModel = getIt.get<ScreenConfigViewModel>(); // ScreenConfigViewModel screenConfigViewModel = getIt.get<ScreenConfigViewModel>();
// screenConfigViewModel.updateGlobalConfigurationsModel(true); // screenConfigViewModel.updateGlobalConfigurationsModel(true);
} }

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

Loading…
Cancel
Save