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:
@@ -427,3 +427,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
), */
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user