feat : sale out of Province

This commit is contained in:
2025-06-22 11:12:57 +03:30
parent 4b7ff135d4
commit 97fe0f138f
6 changed files with 98 additions and 68 deletions

View File

@@ -37,10 +37,8 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
),
additionalActions: [
GestureDetector(
onTap: (){
controller.searchIsSelected.value = !controller.searchIsSelected.value;
onTap: () {
controller.searchIsSelected.value = !controller.searchIsSelected.value;
},
child: Assets.vec.searchSvg.svg(
width: 24,
@@ -130,7 +128,7 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
child: AnimatedContainer(
duration: Duration(milliseconds: 400),
alignment: Alignment.center,
height: expandList.contains(index) ? 170 : 56,
height: expandList.contains(index) ? 175 : 56,
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.centerRight,
@@ -138,7 +136,7 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
AnimatedContainer(
width: Get.width - 30,
duration: Duration(milliseconds: 300),
height: expandList.contains(index) ? 170 : 56,
height: expandList.contains(index) ? 175 : 56,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Colors.transparent,
@@ -238,8 +236,45 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
buildRow('مشخصات فروشنده', '${item.killHouseName} - ${item.killHouseMobile ?? 'N/A'}'),
buildRow('وزن خریداری شده', '${item.weightOfCarcasses?.toInt()} کیلوگرم'),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [Icon(CupertinoIcons.chevron_up, size: 12)],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
//RTextButton(text: , onPressed: () {}, textStyle: AppFonts.yekan14,height: 20,width: 81,backgroundColor: AppColor.warning,),
GestureDetector(
onTap: () {
Get.bottomSheet(
BaseBottomSheet(
height: 400,
child: Column(
spacing: 16,
children: [
Text(
'بارنامه',
style: AppFonts.yekan16Bold.copyWith(color: AppColor.darkGreyDarkHover),
),
Image.network(
item.barImage ?? '',
fit: BoxFit.cover,
height: 300,
errorBuilder: (context, error, stackTrace) {
eLog(error.toString());
return Center(child: Text('خطایی پیش آمده!'));
},
loadingBuilder: (context, child, loadingProgress) {
if (loadingProgress == null) return child;
print('Loading progress: $loadingProgress');
return CupertinoActivityIndicator();
},
),
],
),
),
);
},
child: Text('مشاهده بارنامه', style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal)),
),
Icon(CupertinoIcons.chevron_up, size: 12),
],
),
],
),
@@ -643,7 +678,6 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
CupertinoButton(
child: Text('تایید', style: AppFonts.yekan14),
onPressed: () {