|
|
|
|
@ -64,19 +64,18 @@ class _TeamMembersState extends State<TeamMembers> {
|
|
|
|
|
margin: const EdgeInsets.only(top: 100),
|
|
|
|
|
child: Utils.getNoDataWidget(context)):
|
|
|
|
|
ListView.separated(
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.all(21),
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
itemCount: getEmployeeSubordinatesList.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
var phoneNumber = Uri.parse('tel:${getEmployeeSubordinatesList[index].eMPLOYEEMOBILENUMBER}');
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: const EdgeInsets.only(top: 12),
|
|
|
|
|
separatorBuilder: (BuildContext cxt,int index) => 12.height,
|
|
|
|
|
itemCount: getEmployeeSubordinatesList.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
var phoneNumber = Uri.parse('tel:${getEmployeeSubordinatesList[index].eMPLOYEEMOBILENUMBER}');
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
// Navigator.pushNamed(context, AppRoutes.employeeDetails, arguments: getEmployeeSubordinatesList[index]);
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
getEmployeeSubordinatesList[index].eMPLOYEEIMAGE == null
|
|
|
|
|
@ -100,23 +99,28 @@ class _TeamMembersState extends State<TeamMembers> {
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
getEmployeeSubordinatesList[index].eMPLOYEEMOBILENUMBER == ""
|
|
|
|
|
? SvgPicture.asset("assets/images/call-disable.svg", width: 22, height: 22).paddingOnly(bottom: 23)
|
|
|
|
|
? SvgPicture.asset("assets/images/call-disable.svg", width: 22, height: 22)
|
|
|
|
|
:InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
launchUrl(phoneNumber);
|
|
|
|
|
},
|
|
|
|
|
child: SvgPicture.asset("assets/images/call.svg", width: 22, height: 22).paddingOnly(bottom: 23),
|
|
|
|
|
child: SvgPicture.asset("assets/images/call.svg", width: 22, height: 22),
|
|
|
|
|
),
|
|
|
|
|
8.height,
|
|
|
|
|
const Icon(
|
|
|
|
|
Icons.arrow_forward_outlined,
|
|
|
|
|
color: MyColors.grey3AColor,
|
|
|
|
|
size: 18,
|
|
|
|
|
),
|
|
|
|
|
// 21.height,
|
|
|
|
|
Icon(Icons.arrow_forward_outlined, color: MyColors.grey3AColor),
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
).paddingOnly(top: 13, bottom: 13, right: 12, left: 14).objectContainerView(radius: 10, disablePadding: true),
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|