Ver código fonte

0009604: 【3D颈动脉】颈动脉3D图像缩略图不显示AI角标和3D样式

Caroline 2 anos atrás
pai
commit
7c82ff094a
1 arquivos alterados com 10 adições e 10 exclusões
  1. 10 10
      lib/components/picture_components.dart

+ 10 - 10
lib/components/picture_components.dart

@@ -110,7 +110,7 @@ class FContentImage extends StatelessWidget implements FWidget {
                 terminalImage!.previewUrl!,
                 errorBuilder: ((context, error, stackTrace) {
                   return Container(
-                    child: Text('error'),
+                    child: Text(i18nBook.common.error.t),
                   );
                 }),
               ),
@@ -143,19 +143,12 @@ class FContentImage extends StatelessWidget implements FWidget {
         );
       default:
         return FContainer(
-          child: FText('error'),
+          child: FText(i18nBook.common.error.t),
         );
     }
   }
 
   FWidget _buildLeftAIOrCarotidLogo() {
-    if (hasDiagnosisOrgans) {
-      return FPositioned(
-        bottom: 5,
-        left: 5,
-        child: _buildAIDiagnosticOrgans(),
-      );
-    }
     if (isCarotidResult) {
       return FPositioned(
         bottom: 5,
@@ -166,6 +159,13 @@ class FContentImage extends StatelessWidget implements FWidget {
         ),
       );
     }
+    if (hasDiagnosisOrgans) {
+      return FPositioned(
+        bottom: 5,
+        left: 5,
+        child: _buildAIDiagnosticOrgans(),
+      );
+    }
     return FPositioned(
       bottom: 5,
       left: 5,
@@ -231,7 +231,7 @@ class FContentImage extends StatelessWidget implements FWidget {
               previewUrl,
               errorBuilder: ((context, error, stackTrace) {
                 return Container(
-                  child: Text('error'),
+                  child: Text(i18nBook.common.error.t),
                 );
               }),
             ),