|
|
|
|
@ -23,10 +23,15 @@ class RequestItemViewList extends StatelessWidget {
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
if (isLoading) return const SizedBox().toRequestShimmer(cxt, isLoading);
|
|
|
|
|
bool isServiceRequest = list[index].nameOfType == "ServiceRequest";
|
|
|
|
|
bool isGasRefill = list[index].nameOfType == "GasRefill";
|
|
|
|
|
bool isAssetTransfer = list[index].nameOfType == "AssetTransfer";
|
|
|
|
|
bool isPPMs = list[index].nameOfType == "PPMs";
|
|
|
|
|
// bool isServiceRequest = list[index].nameOfType == "ServiceRequest";
|
|
|
|
|
// bool isGasRefill = list[index].nameOfType == "GasRefill";
|
|
|
|
|
// bool isAssetTransfer = list[index].nameOfType == "AssetTransfer";
|
|
|
|
|
// bool isPPMs = list[index].nameOfType == "PPMs";
|
|
|
|
|
|
|
|
|
|
bool isServiceRequest = list[index].transactionType == 1;
|
|
|
|
|
bool isGasRefill = list[index].transactionType == 2;
|
|
|
|
|
bool isAssetTransfer = list[index].transactionType == 3;
|
|
|
|
|
bool isPPMs = list[index].transactionType == 4;
|
|
|
|
|
|
|
|
|
|
return isServiceRequest
|
|
|
|
|
? ServiceRequestItemView(list[index])
|
|
|
|
|
|