Merge pull request 'CR-6273 improvement.' (#7) from development_sikander into master

Reviewed-on: http://34.17.52.79/Haroon6138/mohemm-flutter-app/pulls/7
master
Sikander Saleem 1 year ago
commit 88d2209e86

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

Loading…
Cancel
Save