CR-6273 improvement.

pull/7/head
Sikander Saleem 2 years ago
parent 58962ede03
commit 7f6f240590

@ -75,6 +75,7 @@ class _MyDocumentsFragmentState extends State<MyDocumentsFragment> {
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,

@ -42,7 +42,6 @@ class _MyDocumentsScreenState extends State<MyDocumentsScreen> {
documentsList?.clear();
Utils.showLoading(context);
documentsList = await ProfileApiClient().getEmployeeDocuments();
documentsList?.removeWhere((element) => element.eNTITLEDTOAPPLYFLAG!="Y");
Utils.hideLoading(context);
setState(() {});
} catch (ex) {

@ -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,7 +60,7 @@ class MyDocumentItem extends StatelessWidget {
).expanded,
],
).expanded,
if(isNotInDetailView)
if (isNotInDetailView)
const Icon(
Icons.arrow_forward,
size: 20,

Loading…
Cancel
Save