|
|
|
|
@ -22,7 +22,15 @@ class RequestsFragment extends StatelessWidget {
|
|
|
|
|
padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16),
|
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, childAspectRatio: 191 / 237, crossAxisSpacing: 16, mainAxisSpacing: 16),
|
|
|
|
|
children: [
|
|
|
|
|
gridItem(snapshot.highPriorityRequests?.total?.count, "high_priority", context.translation.highPriority, context, snapshot.isHighPriorityLoading, 0, AppColor.redStatus(context)),
|
|
|
|
|
gridItem(
|
|
|
|
|
snapshot.highPriorityRequests?.total?.count,
|
|
|
|
|
"high_priority",
|
|
|
|
|
context.translation.highPriority,
|
|
|
|
|
context,
|
|
|
|
|
snapshot.isHighPriorityLoading,
|
|
|
|
|
0,
|
|
|
|
|
context.isDark ? AppColor.redStatus(context) : AppColor.red50,
|
|
|
|
|
),
|
|
|
|
|
gridItem(snapshot.overdueRequests?.total?.count, "overdue", context.translation.overdue, context, snapshot.isOverdueLoading, 1, AppColor.yellowStatus(context)),
|
|
|
|
|
gridItem(snapshot.openRequests?.total?.count, "new_request", context.translation.newR, context, snapshot.isOpenLoading, 2, AppColor.primary40),
|
|
|
|
|
gridItem(snapshot.completedRequests?.total?.count, "complete_request", context.translation.completed, context, snapshot.isCompleteLoading, 3, AppColor.greenStatus(context)),
|
|
|
|
|
|