|
|
|
@ -62,6 +62,17 @@ class _DynamicListViewScreenState extends State<DynamicListViewScreen> {
|
|
|
|
|
|
|
|
|
|
|
|
late bool isTicketRequest;
|
|
|
|
late bool isTicketRequest;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Widget> getEITWidgetsList(List<CollectionTransaction>? collectionTransaction) {
|
|
|
|
|
|
|
|
List<Widget> itemsList = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int t = 0; t < (collectionTransaction ?? []).length; t++) {
|
|
|
|
|
|
|
|
if (collectionTransaction![t].dISPLAYFLAG == "Y") {
|
|
|
|
|
|
|
|
itemsList.add(ItemDetailViewCol(collectionTransaction[t].sEGMENTPROMPT!, collectionTransaction[t].sEGMENTVALUEDSP ?? ""));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return itemsList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
if (dynamicParams == null) {
|
|
|
|
if (dynamicParams == null) {
|
|
|
|
@ -84,16 +95,45 @@ class _DynamicListViewScreenState extends State<DynamicListViewScreen> {
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemBuilder: (cxt, int parentIndex) => getEITTransactionList![parentIndex].collectionTransaction!.isEmpty
|
|
|
|
itemBuilder: (cxt, int parentIndex) => getEITTransactionList![parentIndex].collectionTransaction!.isEmpty
|
|
|
|
? const SizedBox()
|
|
|
|
? const SizedBox()
|
|
|
|
: Column(
|
|
|
|
: GridView(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, childAspectRatio: 1.9 / 0.75),
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
children: [
|
|
|
|
shrinkWrap: true,
|
|
|
|
for (int t = 0; t < (getEITTransactionList![parentIndex].collectionTransaction ?? []).length; t++)
|
|
|
|
primary: false,
|
|
|
|
if (getEITTransactionList![parentIndex].collectionTransaction![t].dISPLAYFLAG == "Y")
|
|
|
|
physics: const ScrollPhysics(),
|
|
|
|
ItemDetailView(getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTPROMPT!,
|
|
|
|
children: getEITWidgetsList(getEITTransactionList![parentIndex].collectionTransaction),
|
|
|
|
getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTVALUEDSP ?? ""),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
).objectContainerView(),
|
|
|
|
).objectContainerView(),
|
|
|
|
|
|
|
|
// Column(
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// for (int t = 0; t < (getEITTransactionList![parentIndex].collectionTransaction ?? []).length; t++)
|
|
|
|
|
|
|
|
// if (getEITTransactionList![parentIndex].collectionTransaction![t].dISPLAYFLAG == "Y")
|
|
|
|
|
|
|
|
// // ItemDetailView(getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTPROMPT!,
|
|
|
|
|
|
|
|
// // getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTVALUEDSP ?? ""),
|
|
|
|
|
|
|
|
// // GridView(
|
|
|
|
|
|
|
|
// // gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
|
|
|
|
|
|
|
|
// // padding: const EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 12),
|
|
|
|
|
|
|
|
// // shrinkWrap: true,
|
|
|
|
|
|
|
|
// // primary: false,
|
|
|
|
|
|
|
|
// // physics: const ScrollPhysics(),
|
|
|
|
|
|
|
|
// // children: getEITWidgetsList(getEITTransactionList![parentIndex].collectionTransaction),
|
|
|
|
|
|
|
|
// // )
|
|
|
|
|
|
|
|
// // ItemDetailViewCol(getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTPROMPT!,
|
|
|
|
|
|
|
|
// // getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTVALUEDSP ?? ""),
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// // GridView(
|
|
|
|
|
|
|
|
// // gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
|
|
|
|
|
|
|
|
// // padding: const EdgeInsets.only(left: 21, right: 21, bottom: 21, top: 12),
|
|
|
|
|
|
|
|
// // shrinkWrap: true,
|
|
|
|
|
|
|
|
// // primary: false,
|
|
|
|
|
|
|
|
// // physics: const ScrollPhysics(),
|
|
|
|
|
|
|
|
// // children: getEITWidgetsList(getEITTransactionList![parentIndex].collectionTransaction),
|
|
|
|
|
|
|
|
// // )
|
|
|
|
|
|
|
|
// // ItemDetailView(getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTPROMPT!,
|
|
|
|
|
|
|
|
// // getEITTransactionList![parentIndex].collectionTransaction![t].sEGMENTVALUEDSP ?? ""),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// ).objectContainerView(),
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
itemCount: getEITTransactionList!.length)),
|
|
|
|
itemCount: getEITTransactionList!.length)),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|