fix translation

faiz_marathon_signalR_critical
Fatimah Alshammari 2 years ago
parent d823824abe
commit 058e287b25

@ -163,14 +163,14 @@ class _TodayAttendanceScreenState extends State<TodayAttendanceScreen> {
Row(
children: [
commonStatusView(LocaleKeys.checkIn.tr(), (model.attendanceTracking!.pSwipeIn) ?? "- - : - -"),
commonStatusView("Check Out", (model.attendanceTracking!.pSwipeOut) ?? "- - : - -")
commonStatusView(LocaleKeys.checkOut.tr(), (model.attendanceTracking!.pSwipeOut) ?? "- - : - -")
],
),
21.height,
Row(
children: [
commonStatusView(LocaleKeys.lateIn.tr(), (model.attendanceTracking!.pLateInHours) ?? "- - : - -"),
commonStatusView("Regular", (model.attendanceTracking!.pScheduledHours) ?? "- - : - -")
commonStatusView(LocaleKeys.regular.tr(), (model.attendanceTracking!.pScheduledHours) ?? "- - : - -")
],
),
],

@ -253,7 +253,7 @@ class _MowadhafhiHRRequestState extends State<MowadhafhiHRRequest> {
children: [
title.toText16().expanded,
6.width,
SimpleButton("Add", () async {
SimpleButton(LocaleKeys.add.tr(), () async {
FilePickerResult? result = await FilePicker.platform.pickFiles(allowMultiple: true);
if (result != null) {
attachmentFiles = attachmentFiles + result.paths.map((path) => File(path!)).toList();
@ -377,7 +377,7 @@ class _MowadhafhiHRRequestState extends State<MowadhafhiHRRequest> {
}
int? messageStatus = await MowadhafhiApiClient().submitRequest(selectedDepartment?.projectDepartmentId, description, projectID, selectedSection?.departmentSectionId.toString(),
selectedTopic?.sectionTopicId.toString(), int.parse(selectedServiceType), list);
Utils.showToast("Request created successfully");
Utils.showToast(LocaleKeys.requestCreatedSuccessfully.tr());
Utils.hideLoading(context);
Navigator.pop(context);
} catch (ex) {

@ -1,4 +1,6 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart';
import 'package:mohem_flutter_app/widgets/button/default_button.dart';
@ -42,7 +44,7 @@ class _QrScannerDialogState extends State<QrScannerDialog> {
Padding(
padding: const EdgeInsets.all(12.0),
child: DefaultButton(
"Cancel",
LocaleKeys.cancel.tr(),
() {
Navigator.pop(context);
},

Loading…
Cancel
Save