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), padding: const EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 11),
itemBuilder: (cxt, index) { itemBuilder: (cxt, index) {
return MyDocumentItem(documentfilteredList[index], getColorByDocumentStatus(documentfilteredList[index].dOCUMENTSTATUS!)).onPress(() { return MyDocumentItem(documentfilteredList[index], getColorByDocumentStatus(documentfilteredList[index].dOCUMENTSTATUS!)).onPress(() {
if (documentfilteredList[index].eNTITLEDTOAPPLYFLAG != 'Y') return;
Navigator.pushNamed( Navigator.pushNamed(
context, context,
AppRoutes.addDynamicInput, AppRoutes.addDynamicInput,

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

@ -17,7 +17,7 @@ class MyDocumentItem extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: document.eNTITLEDTOAPPLYFLAG != 'Y' ? Colors.grey.shade300 : Colors.white,
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
@ -60,12 +60,12 @@ class MyDocumentItem extends StatelessWidget {
).expanded, ).expanded,
], ],
).expanded, ).expanded,
if(isNotInDetailView) if (isNotInDetailView)
const Icon( const Icon(
Icons.arrow_forward, Icons.arrow_forward,
size: 20, size: 20,
color: Color(0xff2E303A), color: Color(0xff2E303A),
) )
], ],
).paddingOnly(top: 14, bottom: 18, right: 14, left: 24), ).paddingOnly(top: 14, bottom: 18, right: 14, left: 24),
], ],

Loading…
Cancel
Save