|
|
|
@ -172,6 +172,8 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget showWorkingTime(List<TaskJobActivityEngineerTimer> timer) {
|
|
|
|
Widget showWorkingTime(List<TaskJobActivityEngineerTimer> timer) {
|
|
|
|
|
|
|
|
if (context.userProvider.user!.type == UsersTypes.normal_user) return const SizedBox();
|
|
|
|
|
|
|
|
|
|
|
|
double totalWorkingHours = timer.fold<double>(0.0, (sum, item) {
|
|
|
|
double totalWorkingHours = timer.fold<double>(0.0, (sum, item) {
|
|
|
|
if (item.startDate == null || item.endDate == null) return sum;
|
|
|
|
if (item.startDate == null || item.endDate == null) return sum;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|