added nevigation for project teams
This commit is contained in:
parent
c96aa42e81
commit
307b3ceb96
@ -14,6 +14,7 @@ import 'package:on_field_work/model/employees/employee_model.dart';
|
||||
import 'package:on_field_work/view/service_project/jobs_tab.dart';
|
||||
import 'package:on_field_work/helpers/widgets/my_refresh_indicator.dart';
|
||||
import 'package:on_field_work/helpers/widgets/pill_tab_bar.dart';
|
||||
import 'package:on_field_work/view/employees/employee_profile_screen.dart';
|
||||
|
||||
class ServiceProjectDetailsScreen extends StatefulWidget {
|
||||
final String projectId;
|
||||
@ -385,7 +386,14 @@ class _ServiceProjectDetailsScreenState
|
||||
const Divider(height: 20, thickness: 1),
|
||||
// List of team members inside this role card
|
||||
...teamMembers.map((team) {
|
||||
return Padding(
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
// NAVIGATION TO EMPLOYEE DETAILS SCREEN
|
||||
Get.to(() => EmployeeProfilePage(
|
||||
employeeId: team.employee.id,
|
||||
));
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
children: [
|
||||
@ -416,6 +424,7 @@ class _ServiceProjectDetailsScreenState
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user