|
@@ -18,24 +18,19 @@ class AiConclusionResult extends FisView<AiResultModifierController>
|
|
|
return FColumn(
|
|
|
children: [
|
|
|
_buildAiDetectedObjects(),
|
|
|
- FObx(
|
|
|
- () => AiDiagnosticResult(
|
|
|
- controller.aiDetectedObjectList[
|
|
|
- controller.state.currentAiDetectedObjectIndex],
|
|
|
- controller.diagnosisOrgan,
|
|
|
- ),
|
|
|
+ AiDiagnosticResult(
|
|
|
+ controller
|
|
|
+ .aiDetectedObjectList[controller.currentAiDetectedObjectIndex],
|
|
|
+ controller.diagnosisOrgan,
|
|
|
),
|
|
|
const FSizedBox(
|
|
|
height: 15,
|
|
|
),
|
|
|
FExpanded(
|
|
|
- child: FObx(
|
|
|
- () => AiFeatureAnalysis(
|
|
|
- controller
|
|
|
- .aiDetectedObjectList[
|
|
|
- controller.state.currentAiDetectedObjectIndex]
|
|
|
- .descriptions,
|
|
|
- ),
|
|
|
+ child: AiFeatureAnalysis(
|
|
|
+ controller
|
|
|
+ .aiDetectedObjectList[controller.currentAiDetectedObjectIndex]
|
|
|
+ .descriptions,
|
|
|
),
|
|
|
),
|
|
|
],
|
|
@@ -58,26 +53,23 @@ class AiConclusionResult extends FisView<AiResultModifierController>
|
|
|
(index) {
|
|
|
return FGestureDetector(
|
|
|
onTap: () {
|
|
|
- controller.state.currentAiDetectedObjectIndex = index;
|
|
|
+ controller.changeAiDetectedObjectIndex(index);
|
|
|
},
|
|
|
businessParent: this,
|
|
|
name: 'AiDetectedObjects',
|
|
|
- child: FObx(
|
|
|
- () => FContainer(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color:
|
|
|
- controller.state.currentAiDetectedObjectIndex == index
|
|
|
- ? const Color.fromRGBO(54, 169, 206, 1)
|
|
|
- : Colors.grey,
|
|
|
- ),
|
|
|
- width: 38,
|
|
|
- height: 35,
|
|
|
- child: FCenter(
|
|
|
- child: FText(
|
|
|
- '${index + 1}',
|
|
|
- style: const TextStyle(
|
|
|
- color: Colors.white,
|
|
|
- ),
|
|
|
+ child: FContainer(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: controller.currentAiDetectedObjectIndex == index
|
|
|
+ ? const Color.fromRGBO(54, 169, 206, 1)
|
|
|
+ : Colors.grey,
|
|
|
+ ),
|
|
|
+ width: 38,
|
|
|
+ height: 35,
|
|
|
+ child: FCenter(
|
|
|
+ child: FText(
|
|
|
+ '${index + 1}',
|
|
|
+ style: const TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
),
|
|
|
),
|
|
|
),
|