Files
rasadyar_application/packages/inspection/lib/presentation/pages/add_supervision/logic.dart

63 lines
2.0 KiB
Dart
Raw Normal View History

2025-04-16 15:53:58 +03:30
import 'package:flutter/material.dart';
2025-05-14 11:44:46 +03:30
import 'package:rasadyar_inspection/presentation/routes/app_routes.dart';
2025-04-16 15:53:58 +03:30
import 'package:rasadyar_core/core.dart';
class AddSupervisionLogic extends GetxController {
RxInt selectedSegment = 0.obs;
2025-04-26 16:50:19 +03:30
RxInt violationSegmentsSelected = 0.obs;
2025-04-19 16:50:36 +03:30
RxInt selectedTypeOfOwnership = 0.obs;
RxInt selectedUnitType = 0.obs;
2025-04-26 16:50:19 +03:30
RxList<int> selectedAccompanyingInspectors = RxList<int>([0]);
Map<String,List<String>> tmpData = {
'نوع مالکیت': ['دولتی', 'غیر دولتی', 'استیجاری', 'شخصی', 'سایر'],
'نوع واحد': ['دولتی', 'غیر دولتی', 'استیجاری', 'شخصی', 'سایر'],
'بازرسان همراه': ['ندارد','دولتی', 'غیر دولتی', 'استیجاری', 'شخصی', 'سایر'],
};
2025-04-19 16:50:36 +03:30
List<String> tmpLs = ['دولتی', 'غیر دولتی', 'استیجاری', 'شخصی', 'سایر'];
2025-04-16 15:53:58 +03:30
// The data for the segments
final Map<int, Widget> segments = {
0: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(50)),
child: Text('دائم', style: AppFonts.yekan13),
),
1: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(50)),
child: Text('موقت', style: AppFonts.yekan13),
),
};
2025-04-26 16:50:19 +03:30
// The data for the segments
final Map<int, Widget> violationSegments = {
0: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(50)),
child: Text('دارد', style: AppFonts.yekan13),
),
1: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(50)),
child: Text('ندارد', style: AppFonts.yekan13),
),
};
List<String> routes = [
InspectionRoutes.inspectionRegistrationOfViolation,
InspectionRoutes.inspectionDisplayInformation
];
2025-04-16 15:53:58 +03:30
@override
void onClose() {
// TODO: implement onClose
super.onClose();
}
}