|
@@ -1,9 +1,9 @@
|
|
|
+import 'package:fis_i18n/i18n.dart';
|
|
|
import 'package:fis_measure/interfaces/enums/annotation.dart';
|
|
|
import 'package:fis_measure/interfaces/process/workspace/application.dart';
|
|
|
import 'package:fis_measure/process/workspace/measure_data_controller.dart';
|
|
|
import 'package:fis_measure/process/workspace/measure_handler.dart';
|
|
|
import 'package:fis_measure/utils/prompt_box.dart';
|
|
|
-import 'package:fis_measure/view/measure/tool_chest_title.dart';
|
|
|
import 'package:fis_ui/index.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter/services.dart';
|
|
@@ -104,7 +104,7 @@ class _MobileAnnotationSelectorState extends State<MobileAnnotationSelector> {
|
|
|
child: OutlinedButton(
|
|
|
child: Text(tools, style: style),
|
|
|
onPressed: () {
|
|
|
- PromptBox.toast('向左拖动以添加注释');
|
|
|
+ PromptBox.toast(i18nBook.measure.dragLeftAddComment.t);
|
|
|
},
|
|
|
style: OutlinedButton.styleFrom(
|
|
|
shape: RoundedRectangleBorder(
|
|
@@ -142,7 +142,8 @@ class _MobileAnnotationSelectorState extends State<MobileAnnotationSelector> {
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: [
|
|
|
InkWell(
|
|
|
- child: _buildModeBtn(!isArrowMode, "文本", Icons.abc, true),
|
|
|
+ child: _buildModeBtn(
|
|
|
+ !isArrowMode, i18nBook.measure.text.t, Icons.abc, true),
|
|
|
onTap: () {
|
|
|
if (measureHandler.changedAnnotationType !=
|
|
|
AnnotationType.label) {
|
|
@@ -154,7 +155,11 @@ class _MobileAnnotationSelectorState extends State<MobileAnnotationSelector> {
|
|
|
),
|
|
|
InkWell(
|
|
|
child: _buildModeBtn(
|
|
|
- isArrowMode, "箭头", Icons.compare_arrows_rounded, false),
|
|
|
+ isArrowMode,
|
|
|
+ i18nBook.measure.arrowhead.t,
|
|
|
+ Icons.compare_arrows_rounded,
|
|
|
+ false,
|
|
|
+ ),
|
|
|
onTap: () {
|
|
|
if (measureHandler.changedAnnotationType !=
|
|
|
AnnotationType.arrow) {
|