diff --git a/lib/new_views/common_widgets/single_item_drop_down_menu.dart b/lib/new_views/common_widgets/single_item_drop_down_menu.dart index a4343fba..f5c4a1d5 100644 --- a/lib/new_views/common_widgets/single_item_drop_down_menu.dart +++ b/lib/new_views/common_widgets/single_item_drop_down_menu.dart @@ -54,9 +54,7 @@ class _SingleItemDropDownMenuState(widget.context); } if (widget.initialValue != null) { - print("$provider:start1:${DateTime.now()}"); final result = (X == NullableLoadingProvider ? widget.staticData : provider?.items)?.where((element) => element.identifier == widget.initialValue?.identifier); - print("$provider:start2:${DateTime.now()}"); if (result?.isNotEmpty ?? false) _selectedItem = result!.first as T?; if (widget.onSelect != null && (widget.initialValue?.identifier ?? "") != (_selectedItem?.identifier ?? "")) { widget.onSelect!(_selectedItem); // Non-null assertion after null check diff --git a/lib/views/pages/user/ppm/update_ppm/update_ppm.dart b/lib/views/pages/user/ppm/update_ppm/update_ppm.dart index 3f4e54d7..dc78915c 100644 --- a/lib/views/pages/user/ppm/update_ppm/update_ppm.dart +++ b/lib/views/pages/user/ppm/update_ppm/update_ppm.dart @@ -71,6 +71,7 @@ class _UpdatePpmState extends State with TickerProviderStateMixin { AllRequestsProvider allRequestsProvider = Provider.of(context, listen: false); allRequestsProvider.reset(); allRequestsProvider.getAllRequests(context, typeTransaction: 4); + ppmProvider.ppmPlanAttachments = []; } // allRequestsProvider.recurrentWoData?.recurrentWoTimerModel=null; Navigator.pop(context); diff --git a/lib/views/pages/user/ppm/update_ppm/wo_info_form.dart b/lib/views/pages/user/ppm/update_ppm/wo_info_form.dart index e4c4760b..69e7deb2 100644 --- a/lib/views/pages/user/ppm/update_ppm/wo_info_form.dart +++ b/lib/views/pages/user/ppm/update_ppm/wo_info_form.dart @@ -245,9 +245,7 @@ class _WoInfoFormState extends State { }, ), 8.height, - _timerWidget(context, totalWorkingHours), - 8.height, AppTextFormField( labelText: context.translation.callComments, @@ -260,7 +258,7 @@ class _WoInfoFormState extends State { widget.planPreventiveVisit.comments = value; }, ), - 8.height, + 16.height, MultiFilesPicker( label: context.translation.attachments, files: ppmProvider.ppmPlanAttachments, @@ -324,7 +322,7 @@ class _WoInfoFormState extends State { ], ), ], - 8.height, + // 8.height, ], ); } diff --git a/lib/views/widgets/images/multi_image_picker_item.dart b/lib/views/widgets/images/multi_image_picker_item.dart index 0b365bf3..ee2d0753 100644 --- a/lib/views/widgets/images/multi_image_picker_item.dart +++ b/lib/views/widgets/images/multi_image_picker_item.dart @@ -35,7 +35,7 @@ class MultiFilesPickerItem extends StatelessWidget { Container( margin: EdgeInsetsDirectional.only(top: 4.toScreenHeight, end: 6.toScreenWidth), decoration: BoxDecoration( - color: Colors.red, + color: AppColor.neutral90, border: Border.all(width: 1, color: context.isDark ? AppColor.neutral30 : AppColor.neutral30), image: DecorationImage( image: getImage(isImage, isPdf, isExcel, file),