merge-requests/30/head
haroon amjad 3 years ago
parent b2810b53ba
commit 2704fcd147

@ -456,21 +456,32 @@ class InfoFragment extends StatelessWidget {
ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""), ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
ItemDetailViewCol(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""), ItemDetailViewCol(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
), ),
ItemDetailGrid( Column(
ItemDetailViewCol(getPrNotificationBodyList.pRHeader![2].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![2].hDRATTRIBUTEVALUE ?? ""), children: getPRHeaderValues(),
ItemDetailViewCol(getPrNotificationBodyList.pRHeader![0].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![0].hDRATTRIBUTEVALUE ?? ""), )
), // ItemDetailGrid(
ItemDetailGrid( // ItemDetailViewCol(getPrNotificationBodyList.pRHeader![2].hDRATTRIBUTENAME ?? "", getPrNotificationBodyList.pRHeader![2].hDRATTRIBUTEVALUE ?? ""),
ItemDetailViewCol(getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTEVALUE ?? ""), // ItemDetailViewCol(getPrNotificationBodyList.pRHeader![0].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![0].hDRATTRIBUTEVALUE ?? ""),
Container(), // ),
isItLast: true, // ItemDetailGrid(
), // ItemDetailViewCol(getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTEVALUE ?? ""),
// Container(),
// isItLast: true,
// ),
], ],
).objectContainerView(), ).objectContainerView(),
], ],
); );
} }
List<Widget> getPRHeaderValues() {
List<Widget> pRHeaders = [];
getPrNotificationBodyList!.pRHeader!.forEach((element) {
pRHeaders.add(ItemDetailGrid(ItemDetailViewCol(element.hDRATTRIBUTENAME!, element.hDRATTRIBUTEVALUE!), Container()));
});
return pRHeaders;
}
Widget getContactNotificationBodyListWidget(GetContactNotificationBodyList data) { Widget getContactNotificationBodyListWidget(GetContactNotificationBodyList data) {
bool isOdd = false; bool isOdd = false;
try { try {

@ -115,37 +115,42 @@ class RequestFragment extends StatelessWidget {
} }
Widget prLinesDataView() { Widget prLinesDataView() {
return Column( return ExpandableNotifier(
children: [ child: ListView.separated(
prLinesList[0].dESCRIPTION.toString().toText14(color: MyColors.textMixColor).objectContainerView(), shrinkWrap: true,
12.height, physics: const NeverScrollableScrollPhysics(),
Column( itemBuilder: (cxt, index) => ExpandablePanel(
children: [ header: prLinesList[index].dESCRIPTION.toString().toText14(color: MyColors.textMixColor),
ItemDetailGrid( collapsed: Column(
ItemDetailViewCol("Cost Center", prLinesList[0].cOSTCENTER ?? ""), children: [
ItemDetailViewCol("Code", prLinesList[0].iTEMCODE ?? ""), ItemDetailGrid(
), ItemDetailViewCol("Cost Center", prLinesList[index].cOSTCENTER ?? ""),
ItemDetailGrid( ItemDetailViewCol("Code", prLinesList[index].iTEMCODE ?? ""),
ItemDetailViewCol("Unit", prLinesList[0].uOM ?? ""), ),
ItemDetailViewCol("Price (SAR)", prLinesList[0].uNITPRICE.toString() ?? ""), ItemDetailGrid(
), ItemDetailViewCol("Unit", prLinesList[index].uOM ?? ""),
ItemDetailGrid( ItemDetailViewCol("Price (SAR)", prLinesList[index].uNITPRICE.toString() ?? ""),
ItemDetailViewCol("Amount (SAR)", prLinesList[0].lINEAMOUNT.toString() ?? ""), ),
ItemDetailViewCol("Quantity", prLinesList[0].qUANTITY.toString() ?? ""), ItemDetailGrid(
), ItemDetailViewCol("Amount (SAR)", prLinesList[index].lINEAMOUNT.toString() ?? ""),
ItemDetailGrid( ItemDetailViewCol("Quantity", prLinesList[index].qUANTITY.toString() ?? ""),
ItemDetailViewCol("AMU (Last 3 months)", prLinesList[0].iTEMAMU.toString() ?? ""), ),
Container(), ItemDetailGrid(
isItLast: true, ItemDetailViewCol("AMU (Last 3 months)", prLinesList[index].iTEMAMU.toString() ?? ""),
), Container(),
// ItemDetailGrid( isItLast: true,
// ItemDetailViewCol(getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTEVALUE ?? ""), ),
// Container(), // ItemDetailGrid(
// isItLast: true, // ItemDetailViewCol(getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTENAME!, getPrNotificationBodyList.pRHeader![1].hDRATTRIBUTEVALUE ?? ""),
// ), // Container(),
], // isItLast: true,
).objectContainerView(), // ),
], ],
),
expanded: const SizedBox(),
).objectContainerView(),
separatorBuilder: (cxt, index) => 12.height,
itemCount: prLinesList.length),
); );
} }

Loading…
Cancel
Save