feat : add counter list
This commit is contained in:
@@ -34,30 +34,32 @@ class RequestsPage extends GetView<RequestsLogic> {
|
||||
|
||||
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<RequestsLogic> {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user