|
@@ -7,7 +7,6 @@ import 'package:fis_measure/process/workspace/measure_handler.dart';
|
|
|
import 'package:fis_measure/utils/prompt_box.dart';
|
|
|
import 'package:fis_ui/index.dart';
|
|
|
import 'package:fis_ui/interface/interactive_container.dart';
|
|
|
-import 'package:fis_ui/widgets/functional/text_tooltip.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
@@ -15,7 +14,12 @@ class LeftSelectInput extends FStatefulWidget implements FInteractiveContainer {
|
|
|
@override
|
|
|
final String pageName = 'LeftSelectInput';
|
|
|
|
|
|
- const LeftSelectInput({super.key});
|
|
|
+ final bool? isLab;
|
|
|
+
|
|
|
+ const LeftSelectInput({
|
|
|
+ super.key,
|
|
|
+ this.isLab = false,
|
|
|
+ });
|
|
|
@override
|
|
|
FState<LeftSelectInput> createState() => _LeftSelectInputState();
|
|
|
}
|
|
@@ -30,6 +34,9 @@ class _LeftSelectInputState extends FState<LeftSelectInput> {
|
|
|
|
|
|
String annotationItem = '';
|
|
|
|
|
|
+ /// 按钮颜色
|
|
|
+ static const buttonColor = Color(0xFF11234F);
|
|
|
+
|
|
|
/// 添加操作后更新注释
|
|
|
void getAnnotationList() async {
|
|
|
List<String> annotationList = [];
|
|
@@ -76,8 +83,13 @@ class _LeftSelectInputState extends FState<LeftSelectInput> {
|
|
|
hintSize: 16,
|
|
|
contentSize: 16,
|
|
|
maxLength: 20,
|
|
|
- fillColor: Colors.white,
|
|
|
- borderColor: const Color.fromARGB(255, 187, 180, 180),
|
|
|
+ fillColor: widget.isLab! ? const Color(0xFF1b1d23) : Colors.white,
|
|
|
+ textStyle: TextStyle(
|
|
|
+ color: widget.isLab! ? Colors.white : const Color(0xff2c77e5),
|
|
|
+ ),
|
|
|
+ borderColor: widget.isLab!
|
|
|
+ ? const Color(0xFF8f98b2)
|
|
|
+ : const Color.fromARGB(255, 187, 180, 180),
|
|
|
suffixIcon: FMaterial(
|
|
|
color: Colors.transparent,
|
|
|
child: FIconButton(
|
|
@@ -101,8 +113,9 @@ class _LeftSelectInputState extends FState<LeftSelectInput> {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- icon: const FIcon(
|
|
|
+ icon: FIcon(
|
|
|
Icons.add,
|
|
|
+ color: widget.isLab! ? Colors.white : const Color(0xff2c77e5),
|
|
|
),
|
|
|
businessParent: widget,
|
|
|
),
|
|
@@ -129,7 +142,8 @@ class _LeftSelectInputState extends FState<LeftSelectInput> {
|
|
|
child: FElevatedButton(
|
|
|
style: ButtonStyle(
|
|
|
padding: const MaterialStatePropertyAll(EdgeInsets.all(0)),
|
|
|
- backgroundColor: MaterialStateProperty.all(Colors.grey),
|
|
|
+ backgroundColor: MaterialStateProperty.all(
|
|
|
+ widget.isLab! ? buttonColor : Colors.grey),
|
|
|
),
|
|
|
child: const FIcon(Icons.restart_alt),
|
|
|
onPressed: resetUserCommentsAsync,
|