|
|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import 'dart:developer';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_qline/constants/app_constants.dart';
|
|
|
|
|
import 'package:hmg_qline/utilities/enums.dart';
|
|
|
|
|
@ -7,6 +9,7 @@ import 'package:hmg_qline/views/common_widgets/app_footer.dart';
|
|
|
|
|
import 'package:hmg_qline/views/common_widgets/app_general_widgets.dart';
|
|
|
|
|
import 'package:hmg_qline/views/common_widgets/app_header.dart';
|
|
|
|
|
import 'package:hmg_qline/views/common_widgets/app_scaffold.dart';
|
|
|
|
|
import 'package:hmg_qline/views/common_widgets/app_texts_widget.dart';
|
|
|
|
|
import 'package:hmg_qline/views/view_helpers/size_config.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
@ -90,18 +93,47 @@ class KioskMainScreen extends StatelessWidget {
|
|
|
|
|
title: "New Latest Certificate Generation ${index + 1}",
|
|
|
|
|
icon: AppAssets.languageIcon,
|
|
|
|
|
onTap: () {
|
|
|
|
|
screenConfigViewModel.updateKioskScreenState(KioskScreenStateEnums.languageState);
|
|
|
|
|
screenConfigViewModel.updateKioskScreenState(KioskScreenStateEnums.ticketNoState);
|
|
|
|
|
}),
|
|
|
|
|
]);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget kioskTicketNumberStateWidget(ScreenConfigViewModel screenConfigViewModel) {
|
|
|
|
|
return Row(
|
|
|
|
|
bool isEnglish = screenConfigViewModel.currentSelectedKioskLanguage == LanguageEnum.english;
|
|
|
|
|
return Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
commonSelectionCardKiosk(screenConfigViewModel: screenConfigViewModel, title: "English", icon: AppAssets.languageIcon, onTap: () {}),
|
|
|
|
|
commonSelectionCardKiosk(screenConfigViewModel: screenConfigViewModel, title: "عربي", icon: AppAssets.languageIcon, onTap: () {}),
|
|
|
|
|
AppText(
|
|
|
|
|
isEnglish ? "Your Ticket Number is: " : "رقم تذكرتك هو:",
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 6,
|
|
|
|
|
textDirection: isEnglish ? TextDirection.ltr : TextDirection.rtl,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
fontFamily: isEnglish ? AppStrings.fontNameCairo : AppStrings.fontNamePoppins,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
screenConfigViewModel.updateKioskScreenState(KioskScreenStateEnums.languageState);
|
|
|
|
|
},
|
|
|
|
|
child: AppText(
|
|
|
|
|
isEnglish ? "PHR-45" : "بي اتش ار-٤٥",
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 10,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
textDirection: isEnglish ? TextDirection.ltr : TextDirection.rtl,
|
|
|
|
|
fontFamily: isEnglish ? AppStrings.fontNameCairo : AppStrings.fontNamePoppins,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
AppText(
|
|
|
|
|
isEnglish ? "Please take the receipt and wait for your turn. \nThank you 😊" : "يرجى أخذ الإيصال وانتظار دورك.\n شكرًا لك 😊",
|
|
|
|
|
fontSize: SizeConfig.getWidthMultiplier() * 3,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
textDirection: isEnglish ? TextDirection.ltr : TextDirection.rtl,
|
|
|
|
|
fontHeight: 1,
|
|
|
|
|
fontFamily: isEnglish ? AppStrings.fontNameCairo : AppStrings.fontNamePoppins,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|