|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:pie_chart/pie_chart.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:test_sa/controllers/providers/api/all_requests_provider.dart';
|
|
|
|
|
import 'package:test_sa/extensions/context_extension.dart';
|
|
|
|
|
@ -45,7 +46,7 @@ class ProgressFragment extends StatelessWidget {
|
|
|
|
|
chartValueStyle: AppTextStyles.heading6.copyWith(color: AppColor.neutral20),
|
|
|
|
|
showChartValuesOutside: true,
|
|
|
|
|
),
|
|
|
|
|
).toShimmer(isShow: snapshot.isOpenLoading || snapshot.isInProgressLoading || snapshot.isCloseLoading, radius: 300).paddingAll(12).toShadowContainer,
|
|
|
|
|
).toShimmer(isShow: snapshot.isOpenLoading || snapshot.isInProgressLoading || snapshot.isCloseLoading, radius: 300).paddingAll(12).toShadowContainer(context),
|
|
|
|
|
).paddingOnly(start: 16, end: 16, bottom: 16),
|
|
|
|
|
DefaultTabController(
|
|
|
|
|
length: 3,
|
|
|
|
|
@ -93,6 +94,7 @@ class ProgressFragment extends StatelessWidget {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
if (isLoading) return SizedBox().toRequestShimmer(cxt, isLoading);
|
|
|
|
|
bool isServiceRequest = list[index].nameOfType == "ServiceRequest";
|
|
|
|
|
bool isGasRefill = list[index].nameOfType == "GasRefill";
|
|
|
|
|
bool isAssetTransfer = list[index].nameOfType == "AssetTransfer";
|
|
|
|
|
@ -113,6 +115,6 @@ class ProgressFragment extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (cxt, index) => 8.height,
|
|
|
|
|
itemCount: list.length);
|
|
|
|
|
itemCount: isLoading ? 6 : list.length);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|