feat: add step 5 page to CreateInspectionBottomSheet and enhance inspection submission flow with new data fields and improved UI components

This commit is contained in:
2025-12-17 09:00:32 +03:30
parent 677e1d044a
commit 3b07dca52e
3 changed files with 734 additions and 433 deletions

View File

@@ -16,6 +16,7 @@ class CreateInspectionBottomSheet
step2Page(controller), step2Page(controller),
step3Page(controller), step3Page(controller),
step4Page(controller), step4Page(controller),
step5Page(controller),
]; ];
@override @override
@@ -69,14 +70,14 @@ class CreateInspectionBottomSheet
Text( Text(
controller.isUploadingImages.value controller.isUploadingImages.value
? 'در حال آپلود...' ? 'در حال آپلود...'
: (controller.activeStepperIndex.value < 3) : (controller.activeStepperIndex.value < 4)
? 'ادامه' ? 'ادامه'
: 'ثبت', : 'ثبت',
), ),
], ],
), ),
onPressed: () { onPressed: () {
if (controller.activeStepperIndex.value < 3) { if (controller.activeStepperIndex.value < 4) {
controller.activeStepperIndex.value++; controller.activeStepperIndex.value++;
} else { } else {
controller.submitInspection(); controller.submitInspection();
@@ -267,7 +268,7 @@ class stepper extends StatelessWidget {
), ),
), ),
), ),
/* Expanded( Expanded(
child: Divider( child: Divider(
color: activeStep >= 4 color: activeStep >= 4
? AppColor.greenNormalHover ? AppColor.greenNormalHover
@@ -275,7 +276,7 @@ class stepper extends StatelessWidget {
thickness: 8, thickness: 8,
), ),
), ),
Container( Container(
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color: activeStep >= 4 color: activeStep >= 4
@@ -292,7 +293,7 @@ class stepper extends StatelessWidget {
color: activeStep >= 3 ? Colors.white : AppColor.iconColor, color: activeStep >= 3 ? Colors.white : AppColor.iconColor,
), ),
), ),
), */ ),
], ],
), ),
), ),