|
|
@@ -9,6 +9,7 @@ import '../../../../data/bean/option_select_item.dart';
|
|
|
import '../../../../resource/assets.gen.dart';
|
|
|
import '../../../../resource/colors.gen.dart';
|
|
|
import '../../../../resource/string.gen.dart';
|
|
|
+import '../../../../utils/step_card_util.dart';
|
|
|
import '../../../../widget/gradient_btn.dart';
|
|
|
import '../../intimacy_analyse_upload/widget/upload_nine_grid.dart';
|
|
|
import '../../widget/option_select_widget.dart';
|
|
|
@@ -186,7 +187,9 @@ class ConversationAnalysisView
|
|
|
Widget _buildAnalysisResultCard() {
|
|
|
return Obx(() {
|
|
|
return StepCard(
|
|
|
- bgImageProvider: Assets.images.bgIntimacyAnalyseUploadCard.provider(),
|
|
|
+ bgImageProvider: StepCardUtil.getCardBgImageProvider(
|
|
|
+ controller.uploadInfoList.length,
|
|
|
+ ),
|
|
|
topTitleWidget: StepTitleWidget(
|
|
|
stepTitle: StringName.intimacyAnalyseAnalysisResult,
|
|
|
),
|
|
|
@@ -194,6 +197,10 @@ class ConversationAnalysisView
|
|
|
height: 63.h,
|
|
|
width: 103.w,
|
|
|
),
|
|
|
+ // 顶部图标的位置
|
|
|
+ topIconWidgetLocation: StepCardUtil.calculateTopIconWidgetLocation(
|
|
|
+ controller.uploadInfoList.length,
|
|
|
+ ),
|
|
|
contentWidget: Column(
|
|
|
children: [
|
|
|
// 图片九宫格
|
|
|
@@ -311,7 +318,9 @@ class ConversationAnalysisView
|
|
|
/// 上传截图例子卡片
|
|
|
Widget _buildChatRecordSampleCard() {
|
|
|
return StepCard(
|
|
|
- bgImageProvider: Assets.images.bgIntimacyAnalyseUploadCard.provider(),
|
|
|
+ bgImageProvider: StepCardUtil.getCardBgImageProvider(
|
|
|
+ controller.uploadInfoList.length,
|
|
|
+ ),
|
|
|
topTitleWidget: StepTitleWidget(
|
|
|
stepTitle: StringName.intimacyConversationAnalysis,
|
|
|
stepDesc: StringName.intimacyConversationAnalysisCardTip,
|
|
|
@@ -320,6 +329,10 @@ class ConversationAnalysisView
|
|
|
height: 63.h,
|
|
|
width: 103.w,
|
|
|
),
|
|
|
+ // 顶部图标的位置
|
|
|
+ topIconWidgetLocation: StepCardUtil.calculateTopIconWidgetLocation(
|
|
|
+ controller.uploadInfoList.length,
|
|
|
+ ),
|
|
|
contentWidget: Column(
|
|
|
children: [
|
|
|
Container(
|