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.
84 lines
3.4 KiB
Dart
84 lines
3.4 KiB
Dart
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:mohem_flutter_app/app_state/app_state.dart';
|
|
import 'package:mohem_flutter_app/classes/colors.dart';
|
|
import 'package:mohem_flutter_app/extensions/int_extensions.dart';
|
|
import 'package:mohem_flutter_app/extensions/string_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/models/my_team/get_employee_subordinates_list.dart';
|
|
import 'package:mohem_flutter_app/widgets/app_bar_widget.dart';
|
|
import 'package:mohem_flutter_app/widgets/button/default_button.dart';
|
|
|
|
class ProfileDetails extends StatefulWidget {
|
|
const ProfileDetails({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
_ProfileDetailsState createState() => _ProfileDetailsState();
|
|
}
|
|
|
|
class _ProfileDetailsState extends State<ProfileDetails> {
|
|
|
|
GetEmployeeSubordinatesList? getEmployeeSubordinates;
|
|
|
|
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
Widget build(BuildContext context) {
|
|
getEmployeeSubordinates ??= ModalRoute.of(context)?.settings.arguments as GetEmployeeSubordinatesList;
|
|
return Scaffold(
|
|
appBar: AppBarWidget(
|
|
context,
|
|
title: LocaleKeys.profileDetails.tr(),
|
|
),
|
|
backgroundColor: MyColors.backgroundColor,
|
|
body: Column(
|
|
children: [
|
|
Container(
|
|
width: double.infinity,
|
|
margin: EdgeInsets.only(
|
|
top: 20,
|
|
left: 21,
|
|
right: 21,
|
|
),
|
|
padding: EdgeInsets.only(left: 14, right: 14, top: 13, bottom: 20),
|
|
decoration: BoxDecoration(
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: Colors.grey.withOpacity(0.5),
|
|
spreadRadius: 5,
|
|
blurRadius: 26,
|
|
offset: Offset(0, 3),
|
|
),
|
|
],
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(10.0),
|
|
),
|
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
LocaleKeys.category.tr().toText13(color: MyColors.lightGrayColor),
|
|
"${getEmployeeSubordinates?.eMPLOYMENTCATEGORYMEANING}".toText16(isBold: true, color: MyColors.darkTextColor),
|
|
23.height,
|
|
LocaleKeys.address.tr().toText13(color: MyColors.lightGrayColor),
|
|
"${getEmployeeSubordinates?.lOCATIONNAME}".toText16(isBold: true, color: MyColors.darkTextColor),
|
|
23.height,
|
|
LocaleKeys.phoneNumber.tr().toText13(color: MyColors.lightGrayColor),
|
|
"${getEmployeeSubordinates?.eMPLOYEEMOBILENUMBER}".toText16(isBold: true, color: MyColors.darkTextColor),
|
|
23.height,
|
|
LocaleKeys.businessGroup.tr().toText13(color: MyColors.lightGrayColor),
|
|
"${getEmployeeSubordinates?.bUSINESSGROUPNAME}".toText16(isBold: true, color: MyColors.darkTextColor),
|
|
23.height,
|
|
LocaleKeys.Payroll.tr().toText13(color: MyColors.lightGrayColor),
|
|
"${getEmployeeSubordinates?.pAYROLLNAME}".toText16(isBold: true, color: MyColors.darkTextColor),
|
|
]),
|
|
),
|
|
],
|
|
));
|
|
}
|
|
|
|
}
|