|
|
@@ -6,6 +6,7 @@ import 'package:clean/router/app_pages.dart';
|
|
|
import 'package:flutter/Material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:get/get_core/src/get_main.dart';
|
|
|
+import 'package:lottie/lottie.dart';
|
|
|
import 'package:wechat_assets_picker/wechat_assets_picker.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
@@ -38,7 +39,7 @@ class PhotoSelectedPreviewPage
|
|
|
child: Obx(() {
|
|
|
if (controller.photoGroups.isEmpty ||
|
|
|
controller.photoGroups[0].images.isEmpty) {
|
|
|
- return _noNoPicturesCard();
|
|
|
+ return _finishCleanCard();
|
|
|
}
|
|
|
return Column(
|
|
|
children: [
|
|
|
@@ -76,19 +77,32 @@ class PhotoSelectedPreviewPage
|
|
|
}),
|
|
|
),
|
|
|
),
|
|
|
- IgnorePointer(
|
|
|
- child: Assets.images.bgHome.image(
|
|
|
- width: 360.w,
|
|
|
- height: 234.h,
|
|
|
- ),
|
|
|
- ),
|
|
|
+ Obx(() {
|
|
|
+ if (controller.photoGroups.isEmpty ||
|
|
|
+ controller.photoGroups[0].images.isEmpty) {
|
|
|
+ return IgnorePointer(
|
|
|
+ child: Assets.images.bgPhotoSelectedPreviewFinish.image(
|
|
|
+ width: 360.w,
|
|
|
+ height: 335.h,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return IgnorePointer(
|
|
|
+ child: Assets.images.bgHome.image(
|
|
|
+ width: 360.w,
|
|
|
+ height: 234.h,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }),
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
Widget _titleCard() {
|
|
|
return Container(
|
|
|
alignment: Alignment.centerLeft,
|
|
|
- padding: EdgeInsets.only(left: 16.w, top: 14.h, right: 16.w,bottom: 20.h),
|
|
|
+ padding:
|
|
|
+ EdgeInsets.only(left: 16.w, top: 14.h, right: 16.w, bottom: 20.h),
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
|
@@ -271,4 +285,58 @@ class PhotoSelectedPreviewPage
|
|
|
],
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ Widget _finishCleanCard() {
|
|
|
+ return Container(
|
|
|
+ width: 360.w,
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.start,
|
|
|
+ children: [
|
|
|
+ Spacer(
|
|
|
+ flex: 3,
|
|
|
+ ),
|
|
|
+ Text(
|
|
|
+ 'Great!',
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 32.sp,
|
|
|
+ fontWeight: FontWeight.w700,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 14.h),
|
|
|
+ Text(
|
|
|
+ "You've completed 1 photo review",
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white.withValues(alpha: 0.8),
|
|
|
+ fontSize: 16.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 47.h),
|
|
|
+ // Assets.images.iconPhotoSelectedPreviewFireworks.image(
|
|
|
+ // width: 158.w,
|
|
|
+ // height: 158.h,
|
|
|
+ // ),
|
|
|
+
|
|
|
+ SizedBox(
|
|
|
+
|
|
|
+ child: Lottie.asset(
|
|
|
+ Assets.anim.animPhotoSelectedPreviewFireworks,
|
|
|
+
|
|
|
+ width: 158.w,
|
|
|
+ height: 158.w,
|
|
|
+
|
|
|
+ repeat: false,
|
|
|
+
|
|
|
+ )),
|
|
|
+
|
|
|
+ Spacer(
|
|
|
+ flex: 5,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|