You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm-flutter-app/lib/ui/profile/personal_info.dart

114 lines
4.2 KiB
Dart

3 years ago
import 'package:easy_localization/easy_localization.dart';
3 years ago
import 'package:flutter/material.dart';
import 'package:mohem_flutter_app/app_state/app_state.dart';
3 years ago
import 'package:mohem_flutter_app/classes/colors.dart';
import 'package:mohem_flutter_app/extensions/string_extensions.dart';
import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
3 years ago
import 'package:mohem_flutter_app/models/get_employee_basic_details.model.dart';
import 'package:mohem_flutter_app/models/member_information_list_model.dart';
3 years ago
import 'package:mohem_flutter_app/widgets/app_bar_widget.dart';
3 years ago
import 'package:mohem_flutter_app/widgets/button/default_button.dart';
class PesonalInfo extends StatefulWidget {
const PesonalInfo({Key? key}) : super(key: key);
@override
_PesonalInfoState createState() => _PesonalInfoState();
}
class _PesonalInfoState extends State<PesonalInfo> {
String? fullName = "";
String? maritalStatus = "";
String? birthDate = "";
String? civilIdentityNumber = "";
String? emailAddress = "";
String? employeeNo = "";
// List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
// MemberInformationListModel? _memberInformationList;
late MemberInformationListModel memberInformationList;
3 years ago
List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
3 years ago
@override
void initState() {
super.initState();
memberInformationList = AppState().memberInformationList!;
3 years ago
}
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBarWidget(
context,
title: LocaleKeys.profile_personalInformation.tr(),
3 years ago
),
3 years ago
backgroundColor: MyColors.backgroundColor,
// bottomSheet:footer(),
body: Column(
children: [
Container(
3 years ago
width: double.infinity,
3 years ago
margin: EdgeInsets.only(
top: 28,
left: 26,
right: 26,
),
padding: EdgeInsets.only(left: 14, right: 14, top: 13, bottom: 20),
3 years ago
height: 350,
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 26,
offset: Offset(0, 3),
),
],
3 years ago
color: Colors.white,
borderRadius: BorderRadius.circular(10.0),
3 years ago
),
3 years ago
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
LocaleKeys.category.tr().toText13(color: MyColors.lightGrayColor),
"${memberInformationList!.eMPLOYMENTCATEGORYMEANING}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,
3 years ago
),
3 years ago
LocaleKeys.address.tr().toText13(color: MyColors.lightGrayColor),
"${memberInformationList!.lOCATIONNAME}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,
),
LocaleKeys.phoneNumber.tr().toText13(color: MyColors.lightGrayColor),
"${memberInformationList!.eMPLOYEEMOBILENUMBER}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,
),
LocaleKeys.businessGroup.tr().toText13(color: MyColors.lightGrayColor),
"${memberInformationList!.bUSINESSGROUPNAME}".toText16(isBold: true, color: MyColors.blackColor),
SizedBox(
height: 20,
),
LocaleKeys.Payroll.tr().toText13(color: MyColors.lightGrayColor),
"${memberInformationList!.pAYROLLNAME}".toText16(isBold: true, color: MyColors.blackColor),
]),
),
],
));
3 years ago
}
3 years ago
footer() {
3 years ago
return Container(
decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(10),
color: MyColors.white,
boxShadow: [
BoxShadow(color: MyColors.lightGreyEFColor, spreadRadius: 3),
],
),
3 years ago
child: DefaultButton(LocaleKeys.update.tr(), () async {}).insideContainer,
3 years ago
);
}
}