feat: update layout dimensions and improve text formatting in poultry farm inspection pages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
sdk.dir=C:\\Users\\Housh11\\AppData\\Local\\Android\\sdk
|
sdk.dir=C:/Users/Housh11/AppData/Local/Android/Sdk
|
||||||
flutter.sdk=C:\\src\\flutter
|
flutter.sdk=C:\\src\\flutter
|
||||||
flutter.buildMode=debug
|
flutter.buildMode=debug
|
||||||
flutter.versionName=1.3.33
|
flutter.versionName=1.3.33
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import 'package:rasadyar_core/core.dart';
|
|||||||
import '../widgets/cu_bottom_sheet.dart';
|
import '../widgets/cu_bottom_sheet.dart';
|
||||||
import 'logic.dart';
|
import 'logic.dart';
|
||||||
|
|
||||||
class PoultryFarmInspectionHomePage
|
class PoultryFarmInspectionHomePage extends GetView<PoultryFarmInspectionHomeLogic> {
|
||||||
extends GetView<PoultryFarmInspectionHomeLogic> {
|
|
||||||
const PoultryFarmInspectionHomePage({super.key});
|
const PoultryFarmInspectionHomePage({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -38,9 +37,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
infoCards(),
|
infoCards(),
|
||||||
segmentWidget(),
|
segmentWidget(),
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return data.value == 0
|
return data.value == 0 ? activeInspectionWidget() : inactiveInspectionWidget();
|
||||||
? activeInspectionWidget()
|
|
||||||
: inactiveInspectionWidget();
|
|
||||||
}, controller.selectedSegmentIndex),
|
}, controller.selectedSegmentIndex),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -55,7 +52,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
addOrEditBottomSheet(controller),
|
addOrEditBottomSheet(controller),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
ignoreSafeArea: false,
|
ignoreSafeArea: false,
|
||||||
).then((value) => controller.clearForm(),);
|
).then((value) => controller.clearForm());
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -66,31 +63,15 @@ class PoultryFarmInspectionHomePage
|
|||||||
|
|
||||||
Padding infoCards() {
|
Padding infoCards() {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(9, 12, 7, 8),
|
padding: const EdgeInsets.fromLTRB(9, 12, 9, 8),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
cardInfo(
|
cardInfo(value: 2225256, description: 'بازرسی شده', color: const Color(0xFFB6DED8)),
|
||||||
value: 2225256,
|
cardInfo(value: 2050, description: 'بازرسی نشده', color: const Color(0xFFE9CED7)),
|
||||||
description: 'بازرسی شده',
|
cardInfo(value: 2225256, description: 'عملکرد مناسب', color: const Color(0xFFCFE0FF)),
|
||||||
color: const Color(0xFFB6DED8),
|
cardInfo(value: 55225, description: 'عملکرد ضعیف', color: const Color(0xFFF3D6CB)),
|
||||||
),
|
|
||||||
cardInfo(
|
|
||||||
value: 2050,
|
|
||||||
description: 'بازرسی نشده',
|
|
||||||
color: const Color(0xFFE9CED7),
|
|
||||||
),
|
|
||||||
cardInfo(
|
|
||||||
value: 2225256,
|
|
||||||
description: 'عملکرد مناسب',
|
|
||||||
color: const Color(0xFFCFE0FF),
|
|
||||||
),
|
|
||||||
cardInfo(
|
|
||||||
value: 55225,
|
|
||||||
description: 'عملکرد ضعیف',
|
|
||||||
color: const Color(0xFFF3D6CB),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -108,8 +89,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
borderColor: const Color(0xFFB4B4B4),
|
borderColor: const Color(0xFFB4B4B4),
|
||||||
selectedBorderColor: AppColor.blueNormal,
|
selectedBorderColor: AppColor.blueNormal,
|
||||||
selectedBackgroundColor: AppColor.blueLight,
|
selectedBackgroundColor: AppColor.blueLight,
|
||||||
onSegmentSelected: (index) =>
|
onSegmentSelected: (index) => controller.changeSegmentIndex(index),
|
||||||
controller.changeSegmentIndex(index),
|
|
||||||
backgroundColor: AppColor.whiteGreyNormal,
|
backgroundColor: AppColor.whiteGreyNormal,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -165,10 +145,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
final reportColor = AppColor.redDark;
|
final reportColor = AppColor.redDark;
|
||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
@@ -204,10 +181,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('نژاد:$breed', style: AppFonts.yekan14.copyWith(color: AppColor.textColor)),
|
||||||
'نژاد:$breed',
|
|
||||||
style: AppFonts.yekan14.copyWith(color: AppColor.textColor),
|
|
||||||
),
|
|
||||||
Text(
|
Text(
|
||||||
' سن $ageInDays (روزه)',
|
' سن $ageInDays (روزه)',
|
||||||
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
||||||
@@ -220,16 +194,8 @@ class PoultryFarmInspectionHomePage
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
buildRow(title: 'شماره مجوز جوجه ریزی', value: licenceNumber),
|
buildRow(title: 'شماره مجوز جوجه ریزی', value: licenceNumber),
|
||||||
buildUnitRow(
|
buildUnitRow(title: 'حجم جوجه ریزی', value: chickVolume, unit: '(قطعه)'),
|
||||||
title: 'حجم جوجه ریزی',
|
buildUnitRow(title: 'مانده در سالن', value: hallRemain, unit: '(قطعه)'),
|
||||||
value: chickVolume,
|
|
||||||
unit: '(قطعه)',
|
|
||||||
),
|
|
||||||
buildUnitRow(
|
|
||||||
title: 'مانده در سالن',
|
|
||||||
value: hallRemain,
|
|
||||||
unit: '(قطعه)',
|
|
||||||
),
|
|
||||||
buildUnitRow(title: 'تلفات', value: losses, unit: '(قطعه)'),
|
buildUnitRow(title: 'تلفات', value: losses, unit: '(قطعه)'),
|
||||||
buildRow(title: 'دامپزشک فارم', value: vetInfo),
|
buildRow(title: 'دامپزشک فارم', value: vetInfo),
|
||||||
buildRow(
|
buildRow(
|
||||||
@@ -423,10 +389,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
final reportColor = AppColor.greenNormal;
|
final reportColor = AppColor.greenNormal;
|
||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8),
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
@@ -462,10 +425,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('نژاد:$breed', style: AppFonts.yekan14.copyWith(color: AppColor.textColor)),
|
||||||
'نژاد:$breed',
|
|
||||||
style: AppFonts.yekan14.copyWith(color: AppColor.textColor),
|
|
||||||
),
|
|
||||||
Text(
|
Text(
|
||||||
' سن $ageInDays (روزه)',
|
' سن $ageInDays (روزه)',
|
||||||
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
|
||||||
@@ -478,16 +438,8 @@ class PoultryFarmInspectionHomePage
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
buildRow(title: 'شماره مجوز جوجه ریزی', value: licenceNumber),
|
buildRow(title: 'شماره مجوز جوجه ریزی', value: licenceNumber),
|
||||||
buildUnitRow(
|
buildUnitRow(title: 'حجم جوجه ریزی', value: chickVolume, unit: '(قطعه)'),
|
||||||
title: 'حجم جوجه ریزی',
|
buildUnitRow(title: 'مانده در سالن', value: hallRemain, unit: '(قطعه)'),
|
||||||
value: chickVolume,
|
|
||||||
unit: '(قطعه)',
|
|
||||||
),
|
|
||||||
buildUnitRow(
|
|
||||||
title: 'مانده در سالن',
|
|
||||||
value: hallRemain,
|
|
||||||
unit: '(قطعه)',
|
|
||||||
),
|
|
||||||
buildUnitRow(title: 'تلفات', value: losses, unit: '(قطعه)'),
|
buildUnitRow(title: 'تلفات', value: losses, unit: '(قطعه)'),
|
||||||
buildRow(title: 'دامپزشک فارم', value: vetInfo),
|
buildRow(title: 'دامپزشک فارم', value: vetInfo),
|
||||||
buildRow(
|
buildRow(
|
||||||
@@ -504,27 +456,18 @@ class PoultryFarmInspectionHomePage
|
|||||||
Assets.vec.excelDownloadSvg.svg(
|
Assets.vec.excelDownloadSvg.svg(
|
||||||
width: 24.w,
|
width: 24.w,
|
||||||
height: 24.h,
|
height: 24.h,
|
||||||
colorFilter: ColorFilter.mode(
|
colorFilter: ColorFilter.mode(AppColor.greenDark, BlendMode.srcIn),
|
||||||
AppColor.greenDark,
|
|
||||||
BlendMode.srcIn,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
'مشاهده جزییات ',
|
'مشاهده جزییات ',
|
||||||
style: AppFonts.yekan14Bold.copyWith(
|
style: AppFonts.yekan14Bold.copyWith(color: AppColor.greenDark),
|
||||||
color: AppColor.greenDark,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
borderColor: AppColor.greenDark,
|
borderColor: AppColor.greenDark,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.bottomSheet(
|
Get.bottomSheet(detailsWidget(), isScrollControlled: true, isDismissible: true);
|
||||||
detailsWidget(),
|
|
||||||
isScrollControlled: true,
|
|
||||||
isDismissible: true,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -544,24 +487,15 @@ class PoultryFarmInspectionHomePage
|
|||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 10),
|
||||||
horizontal: 4,
|
|
||||||
vertical: 10,
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
'جزییات',
|
'جزییات',
|
||||||
style: AppFonts.yekan18Bold.copyWith(
|
style: AppFonts.yekan18Bold.copyWith(color: AppColor.iconColor),
|
||||||
color: AppColor.iconColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Divider(
|
Divider(color: AppColor.blackLightHover, height: 1, thickness: 1),
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
height: 1,
|
|
||||||
thickness: 1,
|
|
||||||
),
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return tabBarWidget(
|
return tabBarWidget(
|
||||||
['اطلاعات', 'پاییش سلامت', 'زیرساخت', 'مستندات'],
|
['اطلاعات', 'پاییش سلامت', 'زیرساخت', 'مستندات'],
|
||||||
@@ -603,56 +537,35 @@ class PoultryFarmInspectionHomePage
|
|||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('مشخصات کلی', style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor)),
|
||||||
'مشخصات کلی',
|
|
||||||
style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
||||||
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
||||||
rTableRow(
|
rTableRow(title: 'نام مالک / بهرهبردار', value: 'مرغداری احمدی'),
|
||||||
title: 'نام مالک / بهرهبردار',
|
|
||||||
value: 'مرغداری احمدی',
|
|
||||||
),
|
|
||||||
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
||||||
|
|
||||||
rTableRow(
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
rTableRow(
|
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -671,9 +584,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: AppColor.bgLight2,
|
color: AppColor.bgLight2,
|
||||||
border: Border(
|
border: Border(bottom: BorderSide(color: AppColor.blackLightHover, width: 1)),
|
||||||
bottom: BorderSide(color: AppColor.blackLightHover, width: 1),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
title ?? '',
|
title ?? '',
|
||||||
@@ -687,9 +598,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
padding: EdgeInsets.symmetric(horizontal: 9, vertical: 11),
|
padding: EdgeInsets.symmetric(horizontal: 9, vertical: 11),
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(bottom: BorderSide(color: AppColor.blackLightHover, width: 1)),
|
||||||
bottom: BorderSide(color: AppColor.blackLightHover, width: 1),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
value ?? '',
|
value ?? '',
|
||||||
@@ -701,11 +610,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget tabBarWidget(
|
Widget tabBarWidget(List<String> tabs, int selectedIndex, Function(int) onTabSelected) {
|
||||||
List<String> tabs,
|
|
||||||
int selectedIndex,
|
|
||||||
Function(int) onTabSelected,
|
|
||||||
) {
|
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: 38.h,
|
height: 38.h,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
@@ -723,18 +628,10 @@ class PoultryFarmInspectionHomePage
|
|||||||
onTap: () => onTabSelected(tabs.indexOf(tab)),
|
onTap: () => onTabSelected(tabs.indexOf(tab)),
|
||||||
behavior: HitTestBehavior.opaque,
|
behavior: HitTestBehavior.opaque,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 11),
|
||||||
horizontal: 10,
|
|
||||||
vertical: 11,
|
|
||||||
),
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: tab == tabs[selectedIndex]
|
border: tab == tabs[selectedIndex]
|
||||||
? Border(
|
? Border(bottom: BorderSide(color: AppColor.blueNormalOld, width: 3))
|
||||||
bottom: BorderSide(
|
|
||||||
color: AppColor.blueNormalOld,
|
|
||||||
width: 3,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -756,11 +653,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: Divider(
|
child: Divider(color: AppColor.blackLightHover, height: 1, thickness: 1),
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
height: 1,
|
|
||||||
thickness: 1,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -776,56 +669,35 @@ class PoultryFarmInspectionHomePage
|
|||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('پاییش سلامت', style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor)),
|
||||||
'پاییش سلامت',
|
|
||||||
style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
||||||
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
||||||
rTableRow(
|
rTableRow(title: 'نام مالک / بهرهبردار', value: 'مرغداری احمدی'),
|
||||||
title: 'نام مالک / بهرهبردار',
|
|
||||||
value: 'مرغداری احمدی',
|
|
||||||
),
|
|
||||||
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
||||||
|
|
||||||
rTableRow(
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
rTableRow(
|
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -843,56 +715,35 @@ class PoultryFarmInspectionHomePage
|
|||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('زیرساخت', style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor)),
|
||||||
'زیرساخت',
|
|
||||||
style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
rTableRow(title: 'نام واحد مرغداری', value: 'لذیذ'),
|
||||||
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
rTableRow(title: 'کد یکتا / شناسه واحد', value: '2541415'),
|
||||||
rTableRow(
|
rTableRow(title: 'نام مالک / بهرهبردار', value: 'مرغداری احمدی'),
|
||||||
title: 'نام مالک / بهرهبردار',
|
|
||||||
value: 'مرغداری احمدی',
|
|
||||||
),
|
|
||||||
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
rTableRow(title: 'موجودی سوخت اضطراری', value: '200 لیتر'),
|
||||||
|
|
||||||
rTableRow(
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
rTableRow(title: 'شهر/تعاونی', value: 'خرم آباد/تعاونی خرم آباد'),
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
rTableRow(
|
|
||||||
title: 'شهر/تعاونی',
|
|
||||||
value: 'خرم آباد/تعاونی خرم آباد',
|
|
||||||
),
|
|
||||||
|
|
||||||
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
rTableRow(title: 'شماره تلفن واحد', value: '021-12345678'),
|
||||||
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
rTableRow(title: 'دامپزشک فارم', value: 'dd dd (05218569685)'),
|
||||||
|
|
||||||
rTableRow(title: 'سالن', value: '2'),
|
rTableRow(title: 'سالن', value: '2'),
|
||||||
rTableRow(
|
rTableRow(title: 'تاریخ ثبت جوجه ریزی', value: '1402/09/19 (10:12)'),
|
||||||
title: 'تاریخ ثبت جوجه ریزی',
|
|
||||||
value: '1402/09/19 (10:12)',
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -910,10 +761,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('مستندات', style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor)),
|
||||||
'مستندات',
|
|
||||||
style: AppFonts.yekan16Bold.copyWith(color: AppColor.iconColor),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
||||||
@@ -944,9 +792,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
color: Color(0x33000000),
|
color: Color(0x33000000),
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
image: NetworkImage(
|
image: NetworkImage("https://picsum.photos/150/150?random=$index"),
|
||||||
"https://picsum.photos/150/150?random=$index",
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
@@ -963,9 +809,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
Text(
|
Text(
|
||||||
'200 فارم در این سالن تخمین زده شده است.',
|
'200 فارم در این سالن تخمین زده شده است.',
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: AppFonts.yekan14Bold.copyWith(
|
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor),
|
||||||
color: AppColor.textColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -1020,9 +864,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
Text(
|
Text(
|
||||||
'انبار نهاده ها',
|
'انبار نهاده ها',
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: AppFonts.yekan14Bold.copyWith(
|
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor),
|
||||||
color: AppColor.textColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -1077,9 +919,7 @@ class PoultryFarmInspectionHomePage
|
|||||||
Text(
|
Text(
|
||||||
'تلفات',
|
'تلفات',
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: AppFonts.yekan14Bold.copyWith(
|
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor),
|
||||||
color: AppColor.textColor,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Widget step1Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 25.h),
|
SizedBox(height: 25.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 500.h,
|
height: 610.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -25,7 +25,7 @@ Widget step1Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 30.h),
|
SizedBox(height: 30.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 340.h,
|
height: 400.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -108,10 +108,7 @@ Column basicUnitInformation(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 4,
|
spacing: 4,
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.my_location_rounded, color: Colors.white, size: 24),
|
Icon(Icons.my_location_rounded, color: Colors.white, size: 24),
|
||||||
Text(
|
Text('دریافت موقعیت جغرافیایی', style: AppFonts.yekan14.copyWith(color: Colors.white)),
|
||||||
'دریافت موقعیت جغرافیایی',
|
|
||||||
style: AppFonts.yekan14.copyWith(color: Colors.white),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Widget step2Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 35.h),
|
SizedBox(height: 35.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 645.h,
|
height: 760.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -25,7 +25,7 @@ Widget step2Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 30.h),
|
SizedBox(height: 30.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 410.h,
|
height: 430.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -37,7 +37,7 @@ Widget step2Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 24.h),
|
SizedBox(height: 24.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 380.h,
|
height: 450.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -55,6 +55,7 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
return Column(
|
return Column(
|
||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
|
SizedBox(height: 12),
|
||||||
cardInfo(
|
cardInfo(
|
||||||
padding: EdgeInsets.fromLTRB(0, 12, 12, 6),
|
padding: EdgeInsets.fromLTRB(0, 12, 12, 6),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -72,10 +73,7 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
padding: EdgeInsets.all(22),
|
padding: EdgeInsets.all(22),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFFE9E9E9),
|
color: Color(0xFFE9E9E9),
|
||||||
border: Border.all(
|
border: Border.all(width: 1, color: AppColor.blackLightHover),
|
||||||
width: 1,
|
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
||||||
@@ -111,29 +109,25 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'عالی',
|
label: 'عالی',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'خوب',
|
label: 'خوب',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'متوسط',
|
label: 'متوسط',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 3,
|
index: 3,
|
||||||
label: 'ضعیف',
|
label: 'ضعیف',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -148,10 +142,7 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('وضعیت تهویه', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'وضعیت تهویه',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -159,22 +150,19 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'خشک',
|
label: 'خشک',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'نیمهمرطوب',
|
label: 'نیمهمرطوب',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'مرطوب',
|
label: 'مرطوب',
|
||||||
@@ -192,10 +180,7 @@ Column generalConditionOfTheHall(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('وضعیت بستر', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'وضعیت بستر',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
@@ -390,16 +375,10 @@ Column casualtiesInformation(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
items: Resource.success([
|
items: Resource.success(['بیماری', 'قطعی برق', 'استرس گرمایی', 'مشکلات دانه']),
|
||||||
'بیماری',
|
|
||||||
'قطعی برق',
|
|
||||||
'استرس گرمایی',
|
|
||||||
'مشکلات دانه',
|
|
||||||
]),
|
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'علت احتمالی تلفات غیرعادی'),
|
||||||
Text(selected ?? 'علت احتمالی تلفات غیرعادی'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
@@ -415,10 +394,7 @@ Column casualtiesInformation(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('نوع نمونه', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'نوع نمونه',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -460,24 +436,17 @@ Column diseasesAndHealthInformation(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 1.h),
|
SizedBox(height: 1.h),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
items: Resource.success([
|
items: Resource.success(['بیماری', 'قطعی برق', 'استرس گرمایی', 'مشکلات دانه']),
|
||||||
'بیماری',
|
|
||||||
'قطعی برق',
|
|
||||||
'استرس گرمایی',
|
|
||||||
'مشکلات دانه',
|
|
||||||
]),
|
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'وجود علائم بیماری در گله'),
|
||||||
Text(selected ?? 'وجود علائم بیماری در گله'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
items: Resource.success(['انجام نشد', 'انجام شد']),
|
items: Resource.success(['انجام نشد', 'انجام شد']),
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'نوع بیماری تشخیص دادهشده / مشکوک'),
|
||||||
Text(selected ?? 'نوع بیماری تشخیص دادهشده / مشکوک'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
RTextField(
|
RTextField(
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Widget step3Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 35.h),
|
SizedBox(height: 35.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 350.h,
|
height: 410.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -25,7 +25,7 @@ Widget step3Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 30.h),
|
SizedBox(height: 30.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 550.h,
|
height: 650.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -37,7 +37,7 @@ Widget step3Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 24.h),
|
SizedBox(height: 24.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 380.h,
|
height: 405.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -49,7 +49,7 @@ Widget step3Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 24.h),
|
SizedBox(height: 24.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 380.h,
|
height: 440.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -84,10 +84,7 @@ Column agriculturalInput2(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
padding: EdgeInsets.all(22),
|
padding: EdgeInsets.all(22),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFFE9E9E9),
|
color: Color(0xFFE9E9E9),
|
||||||
border: Border.all(
|
border: Border.all(width: 1, color: AppColor.blackLightHover),
|
||||||
width: 1,
|
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
||||||
@@ -123,29 +120,25 @@ Column agriculturalInput2(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'عالی',
|
label: 'عالی',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'خوب',
|
label: 'خوب',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'متوسط',
|
label: 'متوسط',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 3,
|
index: 3,
|
||||||
label: 'ضعیف',
|
label: 'ضعیف',
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setSanitaryConditionOfTheHallIndex(index),
|
||||||
controller.setSanitaryConditionOfTheHallIndex(index),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -160,10 +153,7 @@ Column agriculturalInput2(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('وضعیت تهویه', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'وضعیت تهویه',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -171,22 +161,19 @@ Column agriculturalInput2(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'خشک',
|
label: 'خشک',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'نیمهمرطوب',
|
label: 'نیمهمرطوب',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setVentilationStatusIndex(index),
|
||||||
controller.setVentilationStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'مرطوب',
|
label: 'مرطوب',
|
||||||
@@ -204,10 +191,7 @@ Column agriculturalInput2(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('وضعیت بستر', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'وضعیت بستر',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
@@ -411,22 +395,19 @@ Column infrastructureAndEnergy(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setGeneratorOperatingStatusIndex(index),
|
||||||
controller.setGeneratorOperatingStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'سالم',
|
label: 'سالم',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setGeneratorOperatingStatusIndex(index),
|
||||||
controller.setGeneratorOperatingStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'نیمهسالم',
|
label: 'نیمهسالم',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setGeneratorOperatingStatusIndex(index),
|
||||||
controller.setGeneratorOperatingStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'معیوب',
|
label: 'معیوب',
|
||||||
@@ -446,24 +427,17 @@ Column infrastructureAndEnergy(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
items: Resource.success([
|
items: Resource.success(['بیماری', 'قطعی برق', 'استرس گرمایی', 'مشکلات دانه']),
|
||||||
'بیماری',
|
|
||||||
'قطعی برق',
|
|
||||||
'استرس گرمایی',
|
|
||||||
'مشکلات دانه',
|
|
||||||
]),
|
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'علت احتمالی تلفات غیرعادی'),
|
||||||
Text(selected ?? 'علت احتمالی تلفات غیرعادی'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
ResourceOverlayDropdown(
|
ResourceOverlayDropdown(
|
||||||
items: Resource.success(['ندارد', 'دارد']),
|
items: Resource.success(['ندارد', 'دارد']),
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'سابقه قطعی برق دوره جاری'),
|
||||||
Text(selected ?? 'سابقه قطعی برق دوره جاری'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
RTextField(
|
RTextField(
|
||||||
@@ -525,10 +499,7 @@ Column agriculturalInput(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('کیفیت دانه', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'کیفیت دانه',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -548,8 +519,7 @@ Column agriculturalInput(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
label: 'متوسط',
|
label: 'متوسط',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setGrainQualityInputIndex(index),
|
||||||
controller.setGrainQualityInputIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'ضعیف',
|
label: 'ضعیف',
|
||||||
@@ -619,22 +589,19 @@ Column humanResources(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'دائم',
|
label: 'دائم',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'موقت',
|
label: 'موقت',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'روزمزدی',
|
label: 'روزمزدی',
|
||||||
@@ -650,8 +617,7 @@ Column humanResources(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
items: Resource.success(['آموزش ندیده است', 'آموزش دیده است']),
|
items: Resource.success(['آموزش ندیده است', 'آموزش دیده است']),
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'آموزشدیده در حوزه بهداشت و امنیت زیستی'),
|
||||||
Text(selected ?? 'آموزشدیده در حوزه بهداشت و امنیت زیستی'),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -683,7 +649,8 @@ Column facilitiesAndSupport(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
filled: true,
|
filled: true,
|
||||||
|
|
||||||
filledColor: AppColor.bgLight,
|
filledColor: AppColor.bgLight,
|
||||||
), RTextField(
|
),
|
||||||
|
RTextField(
|
||||||
controller: controller.nameOfThePoultryFarmUnit,
|
controller: controller.nameOfThePoultryFarmUnit,
|
||||||
label: 'سال دریافت',
|
label: 'سال دریافت',
|
||||||
filled: true,
|
filled: true,
|
||||||
@@ -695,11 +662,9 @@ Column facilitiesAndSupport(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
items: Resource.success(['دریافت نشده', 'دریافت شده']),
|
items: Resource.success(['دریافت نشده', 'دریافت شده']),
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'وضعیت بازپرداخت'),
|
||||||
Text(selected ?? 'وضعیت بازپرداخت'),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
cardInfo(
|
cardInfo(
|
||||||
padding: EdgeInsets.fromLTRB(12, 12, 12, 12),
|
padding: EdgeInsets.fromLTRB(12, 12, 12, 12),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -712,44 +677,43 @@ Column facilitiesAndSupport(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return SingleChildScrollView(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
scrollDirection: Axis.horizontal,
|
||||||
spacing: 10,
|
child: Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
formChips(
|
spacing: 10,
|
||||||
onTap: (index) =>
|
children: [
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
formChips(
|
||||||
selectedIndex: data.value,
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
index: 0,
|
selectedIndex: data.value,
|
||||||
label: 'نهاده',
|
index: 0,
|
||||||
),
|
label: 'نهاده',
|
||||||
formChips(
|
),
|
||||||
onTap: (index) =>
|
formChips(
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'تسهیلات',
|
label: 'تسهیلات',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
selectedIndex: data.value,
|
||||||
selectedIndex: data.value,
|
index: 2,
|
||||||
index: 2,
|
label: 'واکسن',
|
||||||
label: 'واکسن',
|
),
|
||||||
), formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
selectedIndex: data.value,
|
||||||
selectedIndex: data.value,
|
index: 3,
|
||||||
index: 3,
|
label: 'تجهیزات',
|
||||||
label: 'تجهیزات',
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
);
|
);
|
||||||
}, controller.newBeneficiaryRequestIndex),
|
}, controller.newBeneficiaryRequestIndex),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Widget step4Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 35.h),
|
SizedBox(height: 35.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 430.h,
|
height: 455.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -25,7 +25,7 @@ Widget step4Page(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
SizedBox(height: 30.h),
|
SizedBox(height: 30.h),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
height: 200.h,
|
height: 220.h,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
child: farmInfoWidget(
|
child: farmInfoWidget(
|
||||||
@@ -62,10 +62,7 @@ Column documents(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
padding: EdgeInsets.all(22),
|
padding: EdgeInsets.all(22),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFFE9E9E9),
|
color: Color(0xFFE9E9E9),
|
||||||
border: Border.all(
|
border: Border.all(width: 1, color: AppColor.blackLightHover),
|
||||||
width: 1,
|
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
||||||
@@ -99,10 +96,7 @@ Column documents(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
padding: EdgeInsets.all(22),
|
padding: EdgeInsets.all(22),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFFE9E9E9),
|
color: Color(0xFFE9E9E9),
|
||||||
border: Border.all(
|
border: Border.all(width: 1, color: AppColor.blackLightHover),
|
||||||
width: 1,
|
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
||||||
@@ -135,10 +129,7 @@ Column documents(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
padding: EdgeInsets.all(22),
|
padding: EdgeInsets.all(22),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFFE9E9E9),
|
color: Color(0xFFE9E9E9),
|
||||||
border: Border.all(
|
border: Border.all(width: 1, color: AppColor.blackLightHover),
|
||||||
width: 1,
|
|
||||||
color: AppColor.blackLightHover,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
child: Assets.vec.galleryAddSvg.svg(width: 36, height: 36),
|
||||||
@@ -147,11 +138,7 @@ Column documents(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
Text(
|
Text('ثبت عکس تلفات', style: AppFonts.yekan14.copyWith(color: AppColor.textColorLight)),
|
||||||
'ثبت عکس تلفات',
|
|
||||||
|
|
||||||
style: AppFonts.yekan14.copyWith(color: AppColor.textColorLight),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -205,32 +192,32 @@ Column inspectorConclusion(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return SingleChildScrollView(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
scrollDirection: Axis.horizontal,
|
||||||
spacing: 10,
|
child: Row(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
formChips(
|
spacing: 10,
|
||||||
onTap: (index) =>
|
children: [
|
||||||
controller.setInspectorConclusionIndex(index),
|
formChips(
|
||||||
selectedIndex: data.value,
|
onTap: (index) => controller.setInspectorConclusionIndex(index),
|
||||||
index: 0,
|
selectedIndex: data.value,
|
||||||
label: 'تایید شده',
|
index: 0,
|
||||||
),
|
label: 'تایید شده',
|
||||||
formChips(
|
),
|
||||||
onTap: (index) =>
|
formChips(
|
||||||
controller.setInspectorConclusionIndex(index),
|
onTap: (index) => controller.setInspectorConclusionIndex(index),
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'نیازمند اصلاح',
|
label: 'نیازمند اصلاح',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setInspectorConclusionIndex(index),
|
||||||
controller.setInspectorConclusionIndex(index),
|
selectedIndex: data.value,
|
||||||
selectedIndex: data.value,
|
index: 2,
|
||||||
index: 2,
|
label: 'پرریسک',
|
||||||
label: 'پرریسک',
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
);
|
);
|
||||||
}, controller.inspectorConclusionIndex),
|
}, controller.inspectorConclusionIndex),
|
||||||
],
|
],
|
||||||
@@ -240,6 +227,7 @@ Column inspectorConclusion(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
RTextField(
|
RTextField(
|
||||||
controller: controller.inspectorConclusionDescriptionController,
|
controller: controller.inspectorConclusionDescriptionController,
|
||||||
hintText: 'توصیهها / اخطارها / اقدامات اصلاحی ...',
|
hintText: 'توصیهها / اخطارها / اقدامات اصلاحی ...',
|
||||||
|
hintStyle: AppFonts.yekan14.copyWith(color: AppColor.textColorLight),
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
minLines: 3,
|
minLines: 3,
|
||||||
filled: true,
|
filled: true,
|
||||||
@@ -282,10 +270,7 @@ Column agriculturalInput(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 9,
|
spacing: 9,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text('کیفیت دانه', style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2)),
|
||||||
'کیفیت دانه',
|
|
||||||
style: AppFonts.yekan14Bold.copyWith(color: AppColor.textColor2),
|
|
||||||
),
|
|
||||||
|
|
||||||
ObxValue((data) {
|
ObxValue((data) {
|
||||||
return Row(
|
return Row(
|
||||||
@@ -305,8 +290,7 @@ Column agriculturalInput(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
label: 'متوسط',
|
label: 'متوسط',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setGrainQualityInputIndex(index),
|
||||||
controller.setGrainQualityInputIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'ضعیف',
|
label: 'ضعیف',
|
||||||
@@ -376,22 +360,19 @@ Column humanResources(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'دائم',
|
label: 'دائم',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'موقت',
|
label: 'موقت',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setWorkerContractStatusIndex(index),
|
||||||
controller.setWorkerContractStatusIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'روزمزدی',
|
label: 'روزمزدی',
|
||||||
@@ -407,8 +388,7 @@ Column humanResources(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
items: Resource.success(['آموزش ندیده است', 'آموزش دیده است']),
|
items: Resource.success(['آموزش ندیده است', 'آموزش دیده است']),
|
||||||
|
|
||||||
itemBuilder: (item) => Text(item),
|
itemBuilder: (item) => Text(item),
|
||||||
labelBuilder: (selected) =>
|
labelBuilder: (selected) => Text(selected ?? 'آموزشدیده در حوزه بهداشت و امنیت زیستی'),
|
||||||
Text(selected ?? 'آموزشدیده در حوزه بهداشت و امنیت زیستی'),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -473,29 +453,25 @@ Column facilitiesAndSupport(PoultryFarmInspectionHomeLogic controller) {
|
|||||||
spacing: 10,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 0,
|
index: 0,
|
||||||
label: 'نهاده',
|
label: 'نهاده',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 1,
|
index: 1,
|
||||||
label: 'تسهیلات',
|
label: 'تسهیلات',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 2,
|
index: 2,
|
||||||
label: 'واکسن',
|
label: 'واکسن',
|
||||||
),
|
),
|
||||||
formChips(
|
formChips(
|
||||||
onTap: (index) =>
|
onTap: (index) => controller.setNewBeneficiaryRequestIndex(index),
|
||||||
controller.setNewBeneficiaryRequestIndex(index),
|
|
||||||
selectedIndex: data.value,
|
selectedIndex: data.value,
|
||||||
index: 3,
|
index: 3,
|
||||||
label: 'تجهیزات',
|
label: 'تجهیزات',
|
||||||
|
|||||||
@@ -1,21 +1,14 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:rasadyar_core/core.dart';
|
import 'package:rasadyar_core/core.dart';
|
||||||
|
|
||||||
Widget cardInfo({
|
Widget cardInfo({required int value, required String description, required Color color}) {
|
||||||
required int value,
|
|
||||||
required String description,
|
|
||||||
required Color color,
|
|
||||||
}) {
|
|
||||||
return Container(
|
return Container(
|
||||||
width: 93.w,
|
width: 90.w,
|
||||||
height: 53.h,
|
height: 53.h,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: color,
|
color: color,
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
border: Border.all(
|
border: Border.all(width: 0.50, color: const Color.fromARGB(54, 169, 169, 169)),
|
||||||
width: 0.50,
|
|
||||||
color: const Color.fromARGB(54, 169, 169, 169),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@@ -26,10 +19,7 @@ Widget cardInfo({
|
|||||||
value.separatedByCommaFa,
|
value.separatedByCommaFa,
|
||||||
style: AppFonts.yekan13Bold.copyWith(color: AppColor.textColor),
|
style: AppFonts.yekan13Bold.copyWith(color: AppColor.textColor),
|
||||||
),
|
),
|
||||||
Text(
|
Text(description, style: AppFonts.yekan10.copyWith(color: AppColor.textColor)),
|
||||||
description,
|
|
||||||
style: AppFonts.yekan10.copyWith(color: AppColor.textColor),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user