bug 703 fixed.

design_3.0_latest
Sikander Saleem 8 months ago
parent 4a7f1eb037
commit ab6608f5a6

@ -54,9 +54,7 @@ class _SingleItemDropDownMenuState<T extends Base, X extends LoadingListNotifier
provider = Provider.of<X>(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

@ -71,6 +71,7 @@ class _UpdatePpmState extends State<UpdatePpm> with TickerProviderStateMixin {
AllRequestsProvider allRequestsProvider = Provider.of<AllRequestsProvider>(context, listen: false);
allRequestsProvider.reset();
allRequestsProvider.getAllRequests(context, typeTransaction: 4);
ppmProvider.ppmPlanAttachments = [];
}
// allRequestsProvider.recurrentWoData?.recurrentWoTimerModel=null;
Navigator.pop(context);

@ -245,9 +245,7 @@ class _WoInfoFormState extends State<WoInfoForm> {
},
),
8.height,
_timerWidget(context, totalWorkingHours),
8.height,
AppTextFormField(
labelText: context.translation.callComments,
@ -260,7 +258,7 @@ class _WoInfoFormState extends State<WoInfoForm> {
widget.planPreventiveVisit.comments = value;
},
),
8.height,
16.height,
MultiFilesPicker(
label: context.translation.attachments,
files: ppmProvider.ppmPlanAttachments,
@ -324,7 +322,7 @@ class _WoInfoFormState extends State<WoInfoForm> {
],
),
],
8.height,
// 8.height,
],
);
}

@ -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),

Loading…
Cancel
Save