|
|
@@ -13,6 +13,7 @@ import '../../../../resource/string.gen.dart';
|
|
|
import '../../../../utils/prefix_util.dart';
|
|
|
import '../../../../utils/upload/file_data_source_util.dart';
|
|
|
import '../../../../widget/actionbtn/action_btn.dart';
|
|
|
+import '../../../../widget/gradient_btn.dart';
|
|
|
import '../../../../widget/gradient_text.dart';
|
|
|
import '../../image_viewer/image_viewer_page.dart';
|
|
|
import '../../intimacy_analyse_upload/popup/reply_mode_select_popup.dart';
|
|
|
@@ -468,69 +469,28 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
|
|
|
/// 上传截图按钮
|
|
|
Widget _buildUploadScreenshotBtn(BuildContext context) {
|
|
|
- return GestureDetector(
|
|
|
- onTap: () {
|
|
|
- controller.clickUploadScreenshotBtn(context);
|
|
|
- },
|
|
|
- child: Container(
|
|
|
- margin: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
- padding: EdgeInsets.symmetric(vertical: 14.h),
|
|
|
- width: double.maxFinite,
|
|
|
- decoration: ShapeDecoration(
|
|
|
- // 渐变背景
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: [ColorName.purpleGradient3, ColorName.purpleGradient4],
|
|
|
- begin: Alignment.centerLeft,
|
|
|
- end: Alignment.centerRight,
|
|
|
- ),
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(50.r),
|
|
|
- ),
|
|
|
- ),
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- StringName.intimacyUploadScreenshot,
|
|
|
- style: TextStyle(
|
|
|
- color: ColorName.white,
|
|
|
- fontSize: 16.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
+ return Container(
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
+ width: double.maxFinite,
|
|
|
+ child: GradientTextBtn(
|
|
|
+ StringName.intimacyUploadScreenshot,
|
|
|
+ onPressed: () {
|
|
|
+ controller.clickUploadScreenshotBtn(context);
|
|
|
+ },
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
|
|
|
/// 获取回复按钮
|
|
|
Widget _buildGetReplayBtn() {
|
|
|
- return GestureDetector(
|
|
|
- onTap: () {
|
|
|
- controller.clickGetReplyBtn();
|
|
|
- },
|
|
|
- child: Container(
|
|
|
- padding: EdgeInsets.symmetric(vertical: 14.h),
|
|
|
- width: double.maxFinite,
|
|
|
- decoration: ShapeDecoration(
|
|
|
- // 渐变背景
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: [ColorName.purpleGradient3, ColorName.purpleGradient4],
|
|
|
- begin: Alignment.centerLeft,
|
|
|
- end: Alignment.centerRight,
|
|
|
- ),
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(50.r),
|
|
|
- ),
|
|
|
- ),
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- StringName.intimacyAnalyseGetReply,
|
|
|
- style: TextStyle(
|
|
|
- color: ColorName.white,
|
|
|
- fontSize: 16.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
+ return Container(
|
|
|
+ padding: EdgeInsets.symmetric(vertical: 14.h),
|
|
|
+ width: double.maxFinite,
|
|
|
+ child: GradientTextBtn(
|
|
|
+ StringName.intimacyAnalyseGetReply,
|
|
|
+ onPressed: () {
|
|
|
+ controller.clickGetReplyBtn();
|
|
|
+ },
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
@@ -609,12 +569,7 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
// 上传页,显示上传截图按钮
|
|
|
return Container(
|
|
|
width: double.maxFinite,
|
|
|
- margin: EdgeInsets.only(
|
|
|
- left: 16.w,
|
|
|
- top: 8.h,
|
|
|
- right: 16.w,
|
|
|
- bottom: 20.h,
|
|
|
- ),
|
|
|
+ margin: EdgeInsets.only(top: 8.h, bottom: 20.h),
|
|
|
child: _buildUploadScreenshotBtn(context),
|
|
|
);
|
|
|
} else {
|