|
@@ -5,6 +5,7 @@ import 'package:keyboard/base/base_view.dart';
|
|
|
import '../../../resource/assets.gen.dart';
|
|
import '../../../resource/assets.gen.dart';
|
|
|
import '../../../resource/colors.gen.dart';
|
|
import '../../../resource/colors.gen.dart';
|
|
|
import '../../../resource/string.gen.dart';
|
|
import '../../../resource/string.gen.dart';
|
|
|
|
|
+import '../../../widget/gradient_btn.dart';
|
|
|
import '../widget/intimacy_analyse_report_widget.dart';
|
|
import '../widget/intimacy_analyse_report_widget.dart';
|
|
|
import '../widget/intimacy_user_widget.dart';
|
|
import '../widget/intimacy_user_widget.dart';
|
|
|
import 'intimacy_analyse_report_view_controller.dart';
|
|
import 'intimacy_analyse_report_view_controller.dart';
|
|
@@ -168,38 +169,19 @@ class IntimacyAnalyseReportView
|
|
|
|
|
|
|
|
/// 解锁按钮
|
|
/// 解锁按钮
|
|
|
Widget _buildUnlockBtn(BuildContext context) {
|
|
Widget _buildUnlockBtn(BuildContext context) {
|
|
|
- return GestureDetector(
|
|
|
|
|
- onTap: () {
|
|
|
|
|
- controller.clickUnlockBtn(context);
|
|
|
|
|
- },
|
|
|
|
|
- child: Container(
|
|
|
|
|
- margin: EdgeInsets.symmetric(horizontal: 16.w),
|
|
|
|
|
- padding: EdgeInsets.symmetric(vertical: 14.h),
|
|
|
|
|
- width: double.maxFinite,
|
|
|
|
|
- decoration: ShapeDecoration(
|
|
|
|
|
- color: ColorName.colorBrand,
|
|
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
|
|
- borderRadius: BorderRadius.circular(50.r),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- child: Row(
|
|
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
- children: [
|
|
|
|
|
- Assets.images.iconIntimacyAnalyseUnlock.image(
|
|
|
|
|
- width: 22,
|
|
|
|
|
- height: 22,
|
|
|
|
|
- ),
|
|
|
|
|
- SizedBox(width: 4.w),
|
|
|
|
|
- Text(
|
|
|
|
|
- StringName.intimacyUnlockAnalyse,
|
|
|
|
|
- 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.intimacyUnlockAnalyse,
|
|
|
|
|
+ color: ColorName.colorBrand,
|
|
|
|
|
+ leftIcon: Assets.images.iconIntimacyAnalyseUnlock.image(
|
|
|
|
|
+ width: 22,
|
|
|
|
|
+ height: 22,
|
|
|
),
|
|
),
|
|
|
|
|
+ onPressed: () {
|
|
|
|
|
+ controller.clickUnlockBtn(context);
|
|
|
|
|
+ },
|
|
|
),
|
|
),
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|