From a3327dd708e5155df9f97bef131b18a720549a91 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Tue, 27 May 2025 12:21:18 +0330 Subject: [PATCH] feat : add counter list --- .../lib/presentation/page/requests/view.dart | 75 ++++++++++++------- 1 file changed, 46 insertions(+), 29 deletions(-) diff --git a/packages/livestock/lib/presentation/page/requests/view.dart b/packages/livestock/lib/presentation/page/requests/view.dart index 54b9dc8..2b73f22 100644 --- a/packages/livestock/lib/presentation/page/requests/view.dart +++ b/packages/livestock/lib/presentation/page/requests/view.dart @@ -34,30 +34,32 @@ class RequestsPage extends GetView { Expanded _buildListOfContent() { return Expanded( - child: ListView.separated( - shrinkWrap: true, - itemCount: 10, - physics: BouncingScrollPhysics(), - padding: EdgeInsets.symmetric(horizontal: 20, vertical: controller.isFilterShowed.value ? 5 : 10), - separatorBuilder: (context, index) => SizedBox(height: 6), - itemBuilder: (context, index) { - return GestureDetector( - onTap: () { - Get.toNamed(LiveStockRoutes.requestTagging); - }, - child: Container( - width: Get.width, - height: 75, - decoration: BoxDecoration( - color: - index < 3 - ? AppColor.yellowNormal - : index < 7 - ? AppColor.greenLightActive - : AppColor.blueLight, - borderRadius: BorderRadius.circular(8), - ), - child: Row( + child: ListView.separated( + shrinkWrap: true, + itemCount: 10, + physics: BouncingScrollPhysics(), + padding: EdgeInsets.symmetric(horizontal: 20, vertical: 50), + separatorBuilder: (context, index) => SizedBox(height: 6), + itemBuilder: (context, index) { + return GestureDetector( + onTap: () { + Get.toNamed(LiveStockRoutes.requestTagging); + }, + child: Container( + width: Get.width, + height: 75, + decoration: BoxDecoration( + color: + index < 3 + ? AppColor.yellowNormal + : index < 7 + ? AppColor.greenLightActive + : AppColor.blueLight, + borderRadius: BorderRadius.circular(8), + ), + child: Stack( + children: [ + Row( children: [ SizedBox(width: 5), Expanded( @@ -161,11 +163,26 @@ class RequestsPage extends GetView { ), ], ), - ), - ); - }, - ), - ); + Positioned( + top: 5, + right: 10, + + child:Container( + padding: EdgeInsets.all(4), + alignment: AlignmentDirectional.center, + decoration: BoxDecoration( + shape: BoxShape.circle, + color: Colors.black54,), + child: Text((index*20).toString(),style: AppFonts.yekan12.copyWith(color: Colors.white),), + ), + ), + ], + ), + ), + ); + }, + ), + ); } Row _buildSearchAndFilter() {