|
|
@@ -664,27 +664,32 @@ class IntimacyAnalyseUploadPage
|
|
|
|
|
|
/// 下一步按钮
|
|
|
Widget _buildNextBtn() {
|
|
|
- return Container(
|
|
|
- padding: EdgeInsets.only(top: 13.h, bottom: 13.h),
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: ColorName.colorBrand,
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(30.r)),
|
|
|
- ),
|
|
|
- child: Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- Assets.images.iconLock.image(width: 22.w, height: 22.h),
|
|
|
- SizedBox(width: 8.w),
|
|
|
- Text(
|
|
|
- StringName.nextStep,
|
|
|
- style: TextStyle(
|
|
|
- color: ColorName.white,
|
|
|
- fontSize: 16.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ controller.clickNextBtn();
|
|
|
+ },
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.only(top: 13.h, bottom: 13.h),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.colorBrand,
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(30.r)),
|
|
|
+ ),
|
|
|
+ child: Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Assets.images.iconLock.image(width: 22.w, height: 22.h),
|
|
|
+ SizedBox(width: 8.w),
|
|
|
+ Text(
|
|
|
+ StringName.nextStep,
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.white,
|
|
|
+ fontSize: 16.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
@@ -733,27 +738,29 @@ class IntimacyAnalyseUploadPage
|
|
|
|
|
|
/// 构建卡片列表
|
|
|
Widget _buildCardList() {
|
|
|
- // 上传页
|
|
|
- if (controller.isUploadPage.value) {
|
|
|
- return Column(
|
|
|
- children: [
|
|
|
- // 上传卡片
|
|
|
- _buildUploadStepCard(),
|
|
|
- // 预测方向卡片
|
|
|
- _buildPredictionDirectionStepCard(),
|
|
|
- ],
|
|
|
- );
|
|
|
- } else {
|
|
|
- // 报告页
|
|
|
- return Column(
|
|
|
- children: [
|
|
|
- // 分析结果卡片
|
|
|
- _buildAnalysisResultCard(),
|
|
|
- // 报告结果卡片
|
|
|
- _buildAnalysisReport(),
|
|
|
- ],
|
|
|
- );
|
|
|
- }
|
|
|
+ return Obx(() {
|
|
|
+ // 上传页
|
|
|
+ if (controller.isUploadPage.value) {
|
|
|
+ return Column(
|
|
|
+ children: [
|
|
|
+ // 上传卡片
|
|
|
+ _buildUploadStepCard(),
|
|
|
+ // 预测方向卡片
|
|
|
+ _buildPredictionDirectionStepCard(),
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ // 报告页
|
|
|
+ return Column(
|
|
|
+ children: [
|
|
|
+ // 分析结果卡片
|
|
|
+ _buildAnalysisResultCard(),
|
|
|
+ // 报告结果卡片
|
|
|
+ _buildAnalysisReport(),
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/// 内容
|
|
|
@@ -770,7 +777,9 @@ class IntimacyAnalyseUploadPage
|
|
|
left: 0,
|
|
|
right: 0,
|
|
|
bottom: 0,
|
|
|
- child: _buildBottomActionBtn(),
|
|
|
+ child: Obx(() {
|
|
|
+ return _buildBottomActionBtn();
|
|
|
+ }),
|
|
|
),
|
|
|
],
|
|
|
),
|