|
|
|
@ -179,37 +179,6 @@ class _ItemHistoryScreenState extends State<ItemHistoryScreen> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (tabIndex == 0) _screenParams!.getPRInformationList!.pRHeader![0].dESCRIPTION!.toText14().paddingOnly(top: 20, right: 21, left: 21),
|
|
|
|
|
// if (tabIndex == 0)
|
|
|
|
|
// ListView.separated(
|
|
|
|
|
// padding: const EdgeInsets.all(21),
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
// itemBuilder: (cxt, index) => Column(
|
|
|
|
|
// children: [
|
|
|
|
|
// ItemDetailGrid(
|
|
|
|
|
// ItemDetailViewCol("Cost Center", _screenParams!.getPRInformationList!.pRLines![index].cOSTCENTER ?? ""),
|
|
|
|
|
// ItemDetailViewCol("Code", _screenParams!.getPRInformationList!.pRLines![index].iTEMCODE ?? ""),
|
|
|
|
|
// ),
|
|
|
|
|
// ItemDetailGrid(
|
|
|
|
|
// ItemDetailViewCol("Unit", _screenParams!.getPRInformationList!.pRLines![index].uOM ?? ""),
|
|
|
|
|
// ItemDetailViewCol("Price (SAR)", _screenParams!.getPRInformationList!.pRLines![index].uNITPRICE.toString() ?? ""),
|
|
|
|
|
// ),
|
|
|
|
|
// ItemDetailGrid(
|
|
|
|
|
// ItemDetailViewCol("Amount (SAR)", _screenParams!.getPRInformationList!.pRLines![index].lINEAMOUNT.toString() ?? ""),
|
|
|
|
|
// ItemDetailViewCol("Quantity", _screenParams!.getPRInformationList!.pRLines![index].qUANTITY.toString() ?? ""),
|
|
|
|
|
// ),
|
|
|
|
|
// ItemDetailGrid(
|
|
|
|
|
// ItemDetailViewCol("AMU (Last 3 months)", _screenParams!.getPRInformationList!.pRLines![index].iTEMAMU.toString() ?? ""),
|
|
|
|
|
// ItemDetailViewCol("PR Number", _screenParams!.getPRInformationList!.pRHeader![0].pRNUMBER!.toString() ?? ""),
|
|
|
|
|
// isItLast: true,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ).objectContainerView(),
|
|
|
|
|
// separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
// itemCount: _screenParams!.getPRInformationList!.pRLines!.length),
|
|
|
|
|
// if (tabIndex == 1) getPRActionsHistory(), //"ACTIONS".toText14().paddingOnly(top: 20, right: 21, left: 21),
|
|
|
|
|
// if (tabIndex == 2) getPRAttachments(),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
|
child: PageView(
|
|
|
|
@ -226,7 +195,6 @@ class _ItemHistoryScreenState extends State<ItemHistoryScreen> {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
// if (tabIndex == 0)
|
|
|
|
|
ListView.separated(
|
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
@ -254,9 +222,7 @@ class _ItemHistoryScreenState extends State<ItemHistoryScreen> {
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
itemCount: _screenParams!.getPRInformationList!.pRLines!.length),
|
|
|
|
|
// if (tabIndex == 1)
|
|
|
|
|
getPRActionsHistory(), //"ACTIONS".toText14().paddingOnly(top: 20, right: 21, left: 21),
|
|
|
|
|
// if (tabIndex == 2)
|
|
|
|
|
getPRAttachments(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|