|
@@ -10,7 +10,6 @@ import 'package:electronic_assistant/utils/expand.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:get/get.dart';
|
|
import 'package:get/get.dart';
|
|
|
-import 'package:get/get_core/src/get_main.dart';
|
|
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
|
|
|
|
|
|
import '../../resource/assets.gen.dart';
|
|
import '../../resource/assets.gen.dart';
|
|
@@ -163,8 +162,8 @@ class FilesPage extends BasePage<FilesController> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Widget _buildFileItem(BuildContext context, int index) {
|
|
Widget _buildFileItem(BuildContext context, int index) {
|
|
|
|
|
+ TalkBean talkBean = controller.talkList[index];
|
|
|
return Obx(() {
|
|
return Obx(() {
|
|
|
- TalkBean talkBean = controller.talkList[index].value;
|
|
|
|
|
return Padding(
|
|
return Padding(
|
|
|
padding: EdgeInsets.only(bottom: 8.w),
|
|
padding: EdgeInsets.only(bottom: 8.w),
|
|
|
child: GestureDetector(
|
|
child: GestureDetector(
|
|
@@ -181,8 +180,8 @@ class FilesPage extends BasePage<FilesController> {
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
children: [
|
|
|
Image(
|
|
Image(
|
|
|
- image: (talkBean.status == TalkStatus.analysing ||
|
|
|
|
|
- talkBean.status == TalkStatus.waitAnalysis)
|
|
|
|
|
|
|
+ image: (talkBean.status.value == TalkStatus.analysing ||
|
|
|
|
|
+ talkBean.status.value == TalkStatus.waitAnalysis)
|
|
|
? Assets.images.iconTalkAnalysis.provider()
|
|
? Assets.images.iconTalkAnalysis.provider()
|
|
|
: Assets.images.iconFilesFile.provider(),
|
|
: Assets.images.iconFilesFile.provider(),
|
|
|
width: 28.w,
|
|
width: 28.w,
|
|
@@ -193,21 +192,21 @@ class FilesPage extends BasePage<FilesController> {
|
|
|
child: Column(
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
children: [
|
|
|
- Text(talkBean.title.orEmpty,
|
|
|
|
|
|
|
+ Text(talkBean.title.value.orEmpty,
|
|
|
maxLines: 1,
|
|
maxLines: 1,
|
|
|
overflow: TextOverflow.ellipsis,
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: 14.sp,
|
|
fontSize: 14.sp,
|
|
|
color: ColorName.primaryTextColor,
|
|
color: ColorName.primaryTextColor,
|
|
|
fontWeight: FontWeight.bold)),
|
|
fontWeight: FontWeight.bold)),
|
|
|
- Text(talkBean.summary.orEmpty,
|
|
|
|
|
|
|
+ Text(talkBean.summary.value.orEmpty,
|
|
|
maxLines: 2,
|
|
maxLines: 2,
|
|
|
overflow: TextOverflow.ellipsis,
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: 12.sp,
|
|
fontSize: 12.sp,
|
|
|
- color:
|
|
|
|
|
- talkBean.status == TalkStatus.analysisFail
|
|
|
|
|
- ? "#F5574E".toColor()
|
|
|
|
|
|
|
+ color: talkBean.status.value ==
|
|
|
|
|
+ TalkStatus.analysisFail
|
|
|
|
|
+ ? "#F5574E".toColor()
|
|
|
: ColorName.secondaryTextColor)),
|
|
: ColorName.secondaryTextColor)),
|
|
|
Container(
|
|
Container(
|
|
|
margin: EdgeInsets.only(top: 6.w),
|
|
margin: EdgeInsets.only(top: 6.w),
|