|
@@ -90,6 +90,9 @@ class FContentImage extends StatelessWidget implements FWidget {
|
|
|
///图片文字描述
|
|
|
final String? description;
|
|
|
|
|
|
+ /// 图像定位描述描述
|
|
|
+ final String? locationDescription;
|
|
|
+
|
|
|
FContentImage({
|
|
|
Key? key,
|
|
|
this.terminalImage,
|
|
@@ -102,6 +105,7 @@ class FContentImage extends StatelessWidget implements FWidget {
|
|
|
this.ifShowIndex = true,
|
|
|
this.serialNo = 0,
|
|
|
this.description = '',
|
|
|
+ this.locationDescription = '',
|
|
|
this.contentHeight = 200,
|
|
|
this.contentWidth = 300,
|
|
|
}) : super(key: key);
|
|
@@ -246,6 +250,21 @@ class FContentImage extends StatelessWidget implements FWidget {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ /// 构建图像定位描述
|
|
|
+ FWidget _buildImageLocationDescription() {
|
|
|
+ return FPositioned(
|
|
|
+ right: 5,
|
|
|
+ child: FText(
|
|
|
+ locationDescription ?? "",
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 10,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
FWidget _buildRigthAIText() {
|
|
|
if (isShowDiagnosisOrgans) {
|
|
|
return FPositioned(
|
|
@@ -319,6 +338,7 @@ class FContentImage extends StatelessWidget implements FWidget {
|
|
|
),
|
|
|
_buildLeftAIOrCarotidLogo(),
|
|
|
_buildRigthAIText(),
|
|
|
+ _buildImageLocationDescription(),
|
|
|
if (ifShowIndex!) _buildIndex(),
|
|
|
],
|
|
|
),
|
|
@@ -352,6 +372,7 @@ class FContentImage extends StatelessWidget implements FWidget {
|
|
|
),
|
|
|
),
|
|
|
_buildLeftAIOrCarotidLogo(),
|
|
|
+ _buildImageLocationDescription(),
|
|
|
_buildRigthAIText(),
|
|
|
if (ifShowIndex!) _buildIndex(),
|
|
|
],
|