|
@@ -93,15 +93,31 @@ class _MeasureTestPageState extends State<MeasureTestPage> {
|
|
|
actions: [
|
|
|
TextButton(
|
|
|
onPressed: () {
|
|
|
- Get.find<IMeasureController>().examInfo.selectedImageIndex = 0;
|
|
|
+ if (controller.examInfo.selectedImageIndex == 0) return;
|
|
|
+ controller.examInfo.selectedImageIndex = 0;
|
|
|
},
|
|
|
- child: const Text('0', style: TextStyle(color: Colors.white)),
|
|
|
+ child: Text(
|
|
|
+ '线阵',
|
|
|
+ style: TextStyle(
|
|
|
+ color: controller.examInfo.selectedImageIndex == 0
|
|
|
+ ? Colors.amber
|
|
|
+ : Colors.white,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
TextButton(
|
|
|
onPressed: () {
|
|
|
- Get.find<IMeasureController>().examInfo.selectedImageIndex = 1;
|
|
|
+ if (controller.examInfo.selectedImageIndex == 1) return;
|
|
|
+ controller.examInfo.selectedImageIndex = 1;
|
|
|
},
|
|
|
- child: const Text('1', style: TextStyle(color: Colors.white)),
|
|
|
+ child: Text(
|
|
|
+ '扇阵',
|
|
|
+ style: TextStyle(
|
|
|
+ color: controller.examInfo.selectedImageIndex == 1
|
|
|
+ ? Colors.amber
|
|
|
+ : Colors.white,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
],
|
|
|
leading: IconButton(
|