|
|
@@ -1,10 +1,13 @@
|
|
|
import 'package:electronic_assistant/base/base_page.dart';
|
|
|
+import 'package:electronic_assistant/data/bean/talks.dart';
|
|
|
import 'package:electronic_assistant/module/talk/mindmap/controller.dart';
|
|
|
+import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
import 'package:get/get_core/src/get_main.dart';
|
|
|
|
|
|
-import '../mindview/view.dart';
|
|
|
+import '../common_view.dart';
|
|
|
+import 'mindview/view.dart';
|
|
|
|
|
|
class MindMapView extends BasePage<MindMapController> {
|
|
|
final String? talkId;
|
|
|
@@ -18,6 +21,31 @@ class MindMapView extends BasePage<MindMapController> {
|
|
|
|
|
|
@override
|
|
|
Widget buildBody(BuildContext context) {
|
|
|
- return MindView('');
|
|
|
+ return Obx(() {
|
|
|
+ if (controller.talkController.talkBean.value?.status.value ==
|
|
|
+ TalkStatus.analysisSuccess) {
|
|
|
+ return MindView(
|
|
|
+ controller.talkController.talkBean.value!.summary.value!);
|
|
|
+ } else if (controller.talkController.talkBean.value?.status.value ==
|
|
|
+ TalkStatus.analysisFail) {
|
|
|
+ return getTalkFailView();
|
|
|
+ } else {
|
|
|
+ return getTalkAnalyseView(
|
|
|
+ controller.talkController.isUploading.value == true &&
|
|
|
+ controller.talkController.talkBean.value?.status.value ==
|
|
|
+ TalkStatus.notAnalysis
|
|
|
+ ? '录音上传中,请勿关闭小听'
|
|
|
+ : controller
|
|
|
+ .talkController.talkBean.value?.progressContent.value ??
|
|
|
+ '',
|
|
|
+ controller.talkController.isUploading.value == true &&
|
|
|
+ controller.talkController.talkBean.value?.status.value ==
|
|
|
+ TalkStatus.notAnalysis
|
|
|
+ ? controller.talkController.uploadProgress.value
|
|
|
+ : controller.talkController.talkBean.value?.progress.value
|
|
|
+ ?.toDouble() ??
|
|
|
+ 0.0);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|