|
|
|
|
@ -8,9 +8,11 @@ import 'package:mohem_flutter_app/classes/utils.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/extensions/int_extensions.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/models/get_employee_basic_details.model.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/models/member_information_list_model.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/ui/profile/profile.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/app_bar_widget.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/button/default_button.dart';
|
|
|
|
|
|
|
|
|
|
class PesonalInfo extends StatefulWidget {
|
|
|
|
|
@ -46,21 +48,9 @@ class _PesonalInfoState extends State<PesonalInfo> {
|
|
|
|
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
backgroundColor: MyColors.white,
|
|
|
|
|
leading: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: const Icon(
|
|
|
|
|
Icons.arrow_back_ios,
|
|
|
|
|
color: MyColors.backgroundBlackColor,
|
|
|
|
|
),
|
|
|
|
|
onPressed: () => Navigator.pop(context),
|
|
|
|
|
),
|
|
|
|
|
"Personal Information".toText24(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
appBar: AppBarWidget(
|
|
|
|
|
context,
|
|
|
|
|
title: LocaleKeys.profile_personalInformation.tr(),
|
|
|
|
|
),
|
|
|
|
|
backgroundColor: MyColors.backgroundColor,
|
|
|
|
|
bottomSheet:footer(),
|
|
|
|
|
@ -86,23 +76,23 @@ class _PesonalInfoState extends State<PesonalInfo> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
"Category".toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
LocaleKeys.category.tr().toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
"${memberInformationList!.eMPLOYMENTCATEGORYMEANING}".toText16(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,),
|
|
|
|
|
"Address".toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
LocaleKeys.address.tr().toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
"${memberInformationList!.lOCATIONNAME}".toText16(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,),
|
|
|
|
|
"Phone Number".toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
LocaleKeys.phoneNumber.tr().toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
"${memberInformationList!.eMPLOYEEMOBILENUMBER}".toText16(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,),
|
|
|
|
|
"Business Group".toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
LocaleKeys.businessGroup.tr().toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
"${memberInformationList!.bUSINESSGROUPNAME}".toText16(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,),
|
|
|
|
|
"Payroll".toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
LocaleKeys.Payroll.tr().toText13(color: MyColors.lightGrayColor),
|
|
|
|
|
"${memberInformationList!.pAYROLLNAME}".toText16(isBold: true, color: MyColors.blackColor),
|
|
|
|
|
]
|
|
|
|
|
),
|
|
|
|
|
@ -122,7 +112,7 @@ class _PesonalInfoState extends State<PesonalInfo> {
|
|
|
|
|
BoxShadow(color: MyColors.lightGreyEFColor, spreadRadius: 3),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
child: DefaultButton("Update", () async {
|
|
|
|
|
child: DefaultButton(LocaleKeys.update.tr(), () async {
|
|
|
|
|
// context.setLocale(const Locale("en", "US")); // to change Loacle
|
|
|
|
|
Profile();
|
|
|
|
|
}).insideContainer,
|
|
|
|
|
|