|
@@ -8,8 +8,6 @@ import 'package:fis_lib_report/report_edit.dart';
|
|
|
import 'package:fis_theme/theme.dart';
|
|
|
import 'package:fis_ui/base_define/page.dart';
|
|
|
import 'package:fis_ui/index.dart';
|
|
|
-import 'package:fis_ui/usual/tab_button.dart';
|
|
|
-import 'package:fis_ui/usual/tab_button_group.dart';
|
|
|
import 'package:flutter/gestures.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
@@ -17,6 +15,8 @@ import 'package:fis_common/index.dart';
|
|
|
import 'package:fis_measure/process/workspace/rpc_bridge.dart';
|
|
|
import 'package:vitalapp/pages/consultation_record_view/widgets/button_group.dart';
|
|
|
import 'package:vitalapp/pages/image_report_inner_view/widgets/cloud_image_item.dart';
|
|
|
+import 'package:vitalapp/pages/patient/list/widgets/tab_button.dart';
|
|
|
+import 'package:vitalapp/pages/patient/list/widgets/tab_button_group.dart';
|
|
|
import 'package:vitalapp/pages/report_edit/controller.dart';
|
|
|
import 'package:vitalapp/pages/report_edit/widgets/vocabulary_entry_report.dart';
|
|
|
import 'package:vitalapp/store/store.dart';
|
|
@@ -51,11 +51,15 @@ class _DesktopLayoutState extends State<_DesktopLayout> {
|
|
|
if (kIsMobile) {
|
|
|
_scrollSensitivityFactor = 10.0;
|
|
|
}
|
|
|
- final theme = AppTheme(themeMode: ThemeMode.system);
|
|
|
- FTheme.init(theme);
|
|
|
+ initFTheme();
|
|
|
super.initState();
|
|
|
}
|
|
|
|
|
|
+ void initFTheme() async {
|
|
|
+ final theme = AppTheme(themeMode: ThemeMode.system);
|
|
|
+ await FTheme.init(theme);
|
|
|
+ }
|
|
|
+
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
if (Store.user.token?.isEmpty ?? true) {
|
|
@@ -621,12 +625,10 @@ class _DesktopLayoutState extends State<_DesktopLayout> {
|
|
|
Container(
|
|
|
child: Obx(
|
|
|
() {
|
|
|
- return FTabButtonGroup(
|
|
|
+ return TabButtonGroup(
|
|
|
[
|
|
|
- FTabButton(
|
|
|
- name: "cloudImage",
|
|
|
+ TabButton(
|
|
|
padding: padding,
|
|
|
- businessParent: widget.businessParent,
|
|
|
tabTitle: i18nBook.remedical.cloudImageShort.t,
|
|
|
index: 0,
|
|
|
activeIndex: controller.state.selectImageTabIndex,
|
|
@@ -636,9 +638,7 @@ class _DesktopLayoutState extends State<_DesktopLayout> {
|
|
|
},
|
|
|
),
|
|
|
FSizedBox(width: 10),
|
|
|
- FTabButton(
|
|
|
- name: "measureImage",
|
|
|
- businessParent: widget.businessParent,
|
|
|
+ TabButton(
|
|
|
padding: padding,
|
|
|
tabTitle: i18nBook.measure.measureImageShort.t,
|
|
|
index: 1,
|
|
@@ -651,9 +651,7 @@ class _DesktopLayoutState extends State<_DesktopLayout> {
|
|
|
),
|
|
|
if (controller.state.consultationCode.isNotEmpty) ...[
|
|
|
FSizedBox(width: 10),
|
|
|
- FTabButton(
|
|
|
- name: "consultationImage",
|
|
|
- businessParent: widget.businessParent,
|
|
|
+ TabButton(
|
|
|
padding: padding,
|
|
|
tabTitle: i18nBook.realTimeConsultation
|
|
|
.consultationImageShort.t,
|