diff --git a/lib/ui/screens/my_documents/my_documents_fragment.dart b/lib/ui/screens/my_documents/my_documents_fragment.dart index b385d15..6bc46f7 100644 --- a/lib/ui/screens/my_documents/my_documents_fragment.dart +++ b/lib/ui/screens/my_documents/my_documents_fragment.dart @@ -75,6 +75,7 @@ class _MyDocumentsFragmentState extends State { padding: const EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 11), itemBuilder: (cxt, index) { return MyDocumentItem(documentfilteredList[index], getColorByDocumentStatus(documentfilteredList[index].dOCUMENTSTATUS!)).onPress(() { + if (documentfilteredList[index].eNTITLEDTOAPPLYFLAG != 'Y') return; Navigator.pushNamed( context, AppRoutes.addDynamicInput, diff --git a/lib/ui/screens/my_documents/my_documents_screen.dart b/lib/ui/screens/my_documents/my_documents_screen.dart index 703adeb..ffddd36 100644 --- a/lib/ui/screens/my_documents/my_documents_screen.dart +++ b/lib/ui/screens/my_documents/my_documents_screen.dart @@ -42,7 +42,6 @@ class _MyDocumentsScreenState extends State { documentsList?.clear(); Utils.showLoading(context); documentsList = await ProfileApiClient().getEmployeeDocuments(); - documentsList?.removeWhere((element) => element.eNTITLEDTOAPPLYFLAG!="Y"); Utils.hideLoading(context); setState(() {}); } catch (ex) { diff --git a/lib/widgets/my_document_item.dart b/lib/widgets/my_document_item.dart index 700d6fb..4eb8051 100644 --- a/lib/widgets/my_document_item.dart +++ b/lib/widgets/my_document_item.dart @@ -17,7 +17,7 @@ class MyDocumentItem extends StatelessWidget { Widget build(BuildContext context) { return Container( decoration: BoxDecoration( - color: Colors.white, + color: document.eNTITLEDTOAPPLYFLAG != 'Y' ? Colors.grey.shade300 : Colors.white, borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( @@ -60,12 +60,12 @@ class MyDocumentItem extends StatelessWidget { ).expanded, ], ).expanded, - if(isNotInDetailView) - const Icon( - Icons.arrow_forward, - size: 20, - color: Color(0xff2E303A), - ) + if (isNotInDetailView) + const Icon( + Icons.arrow_forward, + size: 20, + color: Color(0xff2E303A), + ) ], ).paddingOnly(top: 14, bottom: 18, right: 14, left: 24), ],