fix translation

merge-requests/1/merge
Fatimah Alshammari 3 years ago
parent d823824abe
commit 058e287b25

@ -163,14 +163,14 @@ class _TodayAttendanceScreenState extends State<TodayAttendanceScreen> {
Row( Row(
children: [ children: [
commonStatusView(LocaleKeys.checkIn.tr(), (model.attendanceTracking!.pSwipeIn) ?? "- - : - -"), commonStatusView(LocaleKeys.checkIn.tr(), (model.attendanceTracking!.pSwipeIn) ?? "- - : - -"),
commonStatusView("Check Out", (model.attendanceTracking!.pSwipeOut) ?? "- - : - -") commonStatusView(LocaleKeys.checkOut.tr(), (model.attendanceTracking!.pSwipeOut) ?? "- - : - -")
], ],
), ),
21.height, 21.height,
Row( Row(
children: [ children: [
commonStatusView(LocaleKeys.lateIn.tr(), (model.attendanceTracking!.pLateInHours) ?? "- - : - -"), 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: [ children: [
title.toText16().expanded, title.toText16().expanded,
6.width, 6.width,
SimpleButton("Add", () async { SimpleButton(LocaleKeys.add.tr(), () async {
FilePickerResult? result = await FilePicker.platform.pickFiles(allowMultiple: true); FilePickerResult? result = await FilePicker.platform.pickFiles(allowMultiple: true);
if (result != null) { if (result != null) {
attachmentFiles = attachmentFiles + result.paths.map((path) => File(path!)).toList(); 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(), int? messageStatus = await MowadhafhiApiClient().submitRequest(selectedDepartment?.projectDepartmentId, description, projectID, selectedSection?.departmentSectionId.toString(),
selectedTopic?.sectionTopicId.toString(), int.parse(selectedServiceType), list); selectedTopic?.sectionTopicId.toString(), int.parse(selectedServiceType), list);
Utils.showToast("Request created successfully"); Utils.showToast(LocaleKeys.requestCreatedSuccessfully.tr());
Utils.hideLoading(context); Utils.hideLoading(context);
Navigator.pop(context); Navigator.pop(context);
} catch (ex) { } catch (ex) {

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

Loading…
Cancel
Save