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