|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
import 'package:auto_size_text/auto_size_text.dart';
|
|
|
|
import 'package:easy_localization/src/public_ext.dart';
|
|
|
|
import 'package:easy_localization/src/public_ext.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:mohem_flutter_app/api/profile_api_client.dart';
|
|
|
|
import 'package:mohem_flutter_app/api/profile_api_client.dart';
|
|
|
|
@ -14,6 +15,7 @@ import 'package:mohem_flutter_app/models/get_employee_address_model.dart';
|
|
|
|
import 'package:mohem_flutter_app/models/get_employee_basic_details.model.dart';
|
|
|
|
import 'package:mohem_flutter_app/models/get_employee_basic_details.model.dart';
|
|
|
|
import 'package:mohem_flutter_app/models/get_employee_phones_model.dart';
|
|
|
|
import 'package:mohem_flutter_app/models/get_employee_phones_model.dart';
|
|
|
|
import 'package:mohem_flutter_app/provider/dashboard_provider_model.dart';
|
|
|
|
import 'package:mohem_flutter_app/provider/dashboard_provider_model.dart';
|
|
|
|
|
|
|
|
import 'package:mohem_flutter_app/ui/misc/no_data_ui.dart';
|
|
|
|
import 'package:mohem_flutter_app/ui/profile/dynamic_screens/dynamic_input_address_screen.dart';
|
|
|
|
import 'package:mohem_flutter_app/ui/profile/dynamic_screens/dynamic_input_address_screen.dart';
|
|
|
|
import 'package:mohem_flutter_app/ui/profile/phone_numbers.dart';
|
|
|
|
import 'package:mohem_flutter_app/ui/profile/phone_numbers.dart';
|
|
|
|
import 'package:mohem_flutter_app/widgets/app_bar_widget.dart';
|
|
|
|
import 'package:mohem_flutter_app/widgets/app_bar_widget.dart';
|
|
|
|
@ -33,7 +35,7 @@ class _ContactDetailsState extends State<ContactDetails> {
|
|
|
|
String? civilIdentityNumber = "";
|
|
|
|
String? civilIdentityNumber = "";
|
|
|
|
String? emailAddress = "";
|
|
|
|
String? emailAddress = "";
|
|
|
|
String? employeeNo = "";
|
|
|
|
String? employeeNo = "";
|
|
|
|
int? correctOrNew = 1;
|
|
|
|
int? correctOrNew = 2;
|
|
|
|
List<GetEmployeePhonesList> getEmployeePhonesList = [];
|
|
|
|
List<GetEmployeePhonesList> getEmployeePhonesList = [];
|
|
|
|
List<GetEmployeeAddressList> getEmployeeAddressList = [];
|
|
|
|
List<GetEmployeeAddressList> getEmployeeAddressList = [];
|
|
|
|
List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
|
|
|
|
List<GetEmployeeBasicDetailsList> getEmployeeBasicDetailsList = [];
|
|
|
|
@ -99,7 +101,8 @@ class _ContactDetailsState extends State<ContactDetails> {
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
itemCount: getEmployeePhonesList.length),
|
|
|
|
itemCount: getEmployeePhonesList.length),
|
|
|
|
if (menuEntriesPhone.updateButton == 'Y')
|
|
|
|
if (menuEntriesPhone.updateButton == 'Y')
|
|
|
|
AppState().isArabic(context)? Positioned(
|
|
|
|
AppState().isArabic(context)
|
|
|
|
|
|
|
|
? Positioned(
|
|
|
|
top: 1,
|
|
|
|
top: 1,
|
|
|
|
left: 1,
|
|
|
|
left: 1,
|
|
|
|
child: const Icon(Icons.edit_location_alt_outlined, size: 20).onPress(updatePhone),
|
|
|
|
child: const Icon(Icons.edit_location_alt_outlined, size: 20).onPress(updatePhone),
|
|
|
|
@ -129,7 +132,8 @@ class _ContactDetailsState extends State<ContactDetails> {
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
itemCount: getEmployeeAddressList.length),
|
|
|
|
itemCount: getEmployeeAddressList.length),
|
|
|
|
if (menuEntriesAddress.updateButton == 'Y')
|
|
|
|
if (menuEntriesAddress.updateButton == 'Y')
|
|
|
|
AppState().isArabic(context)? Positioned(
|
|
|
|
AppState().isArabic(context)
|
|
|
|
|
|
|
|
? Positioned(
|
|
|
|
top: 1,
|
|
|
|
top: 1,
|
|
|
|
left: 1,
|
|
|
|
left: 1,
|
|
|
|
child: const Icon(Icons.edit_location_alt_outlined, size: 20).onPress(addUpdateAddress),
|
|
|
|
child: const Icon(Icons.edit_location_alt_outlined, size: 20).onPress(addUpdateAddress),
|
|
|
|
@ -141,6 +145,24 @@ class _ContactDetailsState extends State<ContactDetails> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).objectContainerView()
|
|
|
|
).objectContainerView()
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
Stack(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
if (menuEntriesAddress.addButton == 'Y')
|
|
|
|
|
|
|
|
AppState().isArabic(context)
|
|
|
|
|
|
|
|
? Positioned(
|
|
|
|
|
|
|
|
top: 1,
|
|
|
|
|
|
|
|
left: 1,
|
|
|
|
|
|
|
|
child: const Icon(Icons.add_location_alt_outlined, size: 20).onPress(continueDynamicForms),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: Positioned(
|
|
|
|
|
|
|
|
top: 1,
|
|
|
|
|
|
|
|
right: 1,
|
|
|
|
|
|
|
|
child: const Icon(Icons.add_location_alt_outlined, size: 20).onPress(continueDynamicForms),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Utils.getNoDataWidget(context).expanded,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
).objectContainerView()
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|