|
|
@@ -1,3 +1,4 @@
|
|
|
+import 'package:cached_network_image/cached_network_image.dart';
|
|
|
import 'package:dotted_border/dotted_border.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
@@ -142,7 +143,7 @@ class IntimacyAnalyseUploadPage
|
|
|
),
|
|
|
contentWidget: Column(
|
|
|
children: [
|
|
|
- // 九宫格
|
|
|
+ // 图片九宫格
|
|
|
Container(
|
|
|
margin: EdgeInsets.only(left: 12.w, right: 12.w),
|
|
|
padding: EdgeInsets.only(
|
|
|
@@ -213,6 +214,161 @@ class IntimacyAnalyseUploadPage
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+ /// 分析结果卡片
|
|
|
+ Widget _buildAnalysisResultCard() {
|
|
|
+ return StepCard(
|
|
|
+ bgImageProvider: Assets.images.bgIntimacyAnalyseUploadCard.provider(),
|
|
|
+ stepLabel: "",
|
|
|
+ stepTitle: StringName.intimacyAnalyseAnalysisResult,
|
|
|
+ stepDesc: "",
|
|
|
+ topIconWidget: Assets.images.iconIntimacyAnalysisResultTop.image(
|
|
|
+ height: 63.h,
|
|
|
+ width: 103.w,
|
|
|
+ ),
|
|
|
+ contentWidget: Column(
|
|
|
+ children: [
|
|
|
+ // 图片九宫格
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(left: 12.w, right: 12.w),
|
|
|
+ padding: EdgeInsets.only(
|
|
|
+ left: 12.w,
|
|
|
+ top: 12.h,
|
|
|
+ right: 12.w,
|
|
|
+ bottom: 12.h,
|
|
|
+ ),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.white,
|
|
|
+ borderRadius: BorderRadius.circular(16.r),
|
|
|
+ ),
|
|
|
+ child: UploadNineGrid(
|
|
|
+ mode: Mode.preview,
|
|
|
+ imageSrcList: ["", "", "", "", "", "", ""],
|
|
|
+ maxCount: 9,
|
|
|
+ spacing: 8.0,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 10.h),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 12.w),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ // 预测方向
|
|
|
+ _buildDirectionResult(),
|
|
|
+ SizedBox(width: 12.w,),
|
|
|
+ // 模型
|
|
|
+ _buildAiModelResult()
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ /// 预测方向结果
|
|
|
+ Widget _buildDirectionResult() {
|
|
|
+ return Expanded(
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 10.w),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.white,
|
|
|
+ borderRadius: BorderRadius.circular(14.r),
|
|
|
+ ),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ children: [
|
|
|
+ // 标题
|
|
|
+ Text(
|
|
|
+ StringName.intimacyAnalysePredictionDirection,
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.black47,
|
|
|
+ fontSize: 12.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 4.h),
|
|
|
+ // 结果
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ // 图标
|
|
|
+ CachedNetworkImage(imageUrl: "", height: 14.w, width: 14.w),
|
|
|
+ SizedBox(width: 2.w),
|
|
|
+ // 结果文字
|
|
|
+ Text(
|
|
|
+ "未来",
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.black80,
|
|
|
+ fontSize: 13.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ // 亲密关系头像
|
|
|
+ IntimacyUserWidget(
|
|
|
+ width: 60.w,
|
|
|
+ height: 30.h,
|
|
|
+ avatarSize: 30.0,
|
|
|
+ avatarUrl1: '',
|
|
|
+ avatarUrl2: '',
|
|
|
+ avatarBorderWidth: 1.w,
|
|
|
+ loveSize: 17.w,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ /// Ai模型结果
|
|
|
+ Widget _buildAiModelResult() {
|
|
|
+ return Expanded(
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 10.w),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.white,
|
|
|
+ borderRadius: BorderRadius.circular(14.r),
|
|
|
+ ),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ children: [
|
|
|
+ // 标题
|
|
|
+ Text(
|
|
|
+ StringName.intimacyAnalyseModel,
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.black47,
|
|
|
+ fontSize: 12.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 4.h),
|
|
|
+ // 结果文字
|
|
|
+ Text(
|
|
|
+ "DeepSeek R1",
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.black80,
|
|
|
+ fontSize: 13.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ Expanded(child: SizedBox()),
|
|
|
+ // Ai模型图片
|
|
|
+ Assets.images.iconAiModel.image(width: 38, height: 30),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
/// 添加预测方向按钮
|
|
|
Widget _buildAddDirectionBtn() {
|
|
|
return Container(
|
|
|
@@ -504,6 +660,8 @@ class IntimacyAnalyseUploadPage
|
|
|
children: [
|
|
|
// 上传卡片
|
|
|
_buildUploadStepCard(),
|
|
|
+ // 分析结果卡片
|
|
|
+ _buildAnalysisResultCard(),
|
|
|
// 预测方向卡片
|
|
|
_buildPredictionDirectionStepCard(),
|
|
|
SizedBox(height: 80.h),
|