|
|
@@ -7,11 +7,14 @@ import 'package:get/get_core/src/get_main.dart';
|
|
|
import 'package:location/utils/common_expand.dart';
|
|
|
|
|
|
import '../../resource/assets.gen.dart';
|
|
|
+import '../../resource/colors.gen.dart';
|
|
|
|
|
|
class MemberEvaluationPopUpDialog {
|
|
|
static void show({
|
|
|
VoidCallback? cancelOnTap,
|
|
|
- VoidCallback? confirmOnTap,}) {
|
|
|
+ VoidCallback? confirmOnTap,
|
|
|
+ int? days
|
|
|
+ }) {
|
|
|
Get.dialog(
|
|
|
SimpleDialog(
|
|
|
titlePadding: EdgeInsets.zero,
|
|
|
@@ -24,7 +27,9 @@ class MemberEvaluationPopUpDialog {
|
|
|
Get.back();
|
|
|
cancelOnTap!();
|
|
|
},
|
|
|
- confirmOnTap: confirmOnTap)
|
|
|
+ confirmOnTap: confirmOnTap,
|
|
|
+ days: days,
|
|
|
+ )
|
|
|
],
|
|
|
)
|
|
|
);
|
|
|
@@ -35,12 +40,13 @@ class MemberEvaluationPopUpDialog {
|
|
|
class MemberPaymentCompletedTipView extends StatefulWidget {
|
|
|
final VoidCallback? cancelOnTap;
|
|
|
final VoidCallback? confirmOnTap;
|
|
|
-
|
|
|
+ final int? days;
|
|
|
|
|
|
const MemberPaymentCompletedTipView({
|
|
|
super.key,
|
|
|
this.cancelOnTap,
|
|
|
required this.confirmOnTap,
|
|
|
+ this.days
|
|
|
});
|
|
|
|
|
|
@override
|
|
|
@@ -71,8 +77,84 @@ class _MemberPaymentCompletedTipViewState extends State<MemberPaymentCompletedTi
|
|
|
child: Column(
|
|
|
children: [
|
|
|
SizedBox(
|
|
|
- height: 183.w,
|
|
|
+ height: 110.w,
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Text("五星好评,",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 18.sp,
|
|
|
+ color: "#333333".color,
|
|
|
+ fontWeight: FontWeight.bold)),
|
|
|
+ Text("免费领" ,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 18.sp,
|
|
|
+ color: "#5E61F7".color,
|
|
|
+ fontWeight: FontWeight.bold)),
|
|
|
+ Transform.translate(
|
|
|
+ offset: Offset(0, 8), // 向下偏移4像素
|
|
|
+ child: Text("${widget.days ?? 0}",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 32.sp,
|
|
|
+ color: "#5E61F7".color,
|
|
|
+ fontWeight: FontWeight.bold)),
|
|
|
+ ),
|
|
|
+ Text("天会员",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 18.sp,
|
|
|
+ color: "#5E61F7".color,
|
|
|
+ fontWeight: FontWeight.bold))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ SizedBox(height: 8.w,),
|
|
|
+ Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ gradient: LinearGradient(
|
|
|
+ // 渐变方向:90度(从左到右)
|
|
|
+ begin: Alignment.centerLeft,
|
|
|
+ end: Alignment.centerRight,
|
|
|
+ // 渐变颜色:从透明灰到#AAA
|
|
|
+ colors: [
|
|
|
+ Color.fromRGBO(170, 170, 170, 0.0), // rgba(170, 170, 170, 0.00)
|
|
|
+ Color(0xFFAAAAAA), // #AAA
|
|
|
+ ],
|
|
|
+ // 渐变位置:0%到100%
|
|
|
+ stops: [0.0, 1.0],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ width: 14.w,
|
|
|
+ height: 1.w,
|
|
|
+ ),
|
|
|
+ SizedBox(width: 6.w,),
|
|
|
+ Text("为你重要的朋友保驾护航",
|
|
|
+ style: TextStyle(fontSize: 12.sp, color: ColorName.black60)),
|
|
|
+ SizedBox(width: 6.w,),
|
|
|
+ Container(
|
|
|
+ width: 14.w,
|
|
|
+ height: 1.w,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ gradient: LinearGradient(
|
|
|
+ // 90度渐变(从左到右)
|
|
|
+ begin: Alignment(1.0, 0.0),// 左侧起点
|
|
|
+ end: Alignment(-1.0, 0.0), // 右侧终点
|
|
|
+ // 渐变颜色:透明灰到#AAA
|
|
|
+ colors: [
|
|
|
+ Color.fromARGB(0, 170, 170, 170), // rgba(170, 170, 170, 0.00)
|
|
|
+ Color(0xFFAAAAAA), // #AAA
|
|
|
+ ],
|
|
|
+ // 颜色分布位置
|
|
|
+ stops: [0.0, 1.0],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
),
|
|
|
+ SizedBox(height: 20.w,),
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
Get.back();
|
|
|
@@ -113,7 +195,7 @@ class _MemberPaymentCompletedTipViewState extends State<MemberPaymentCompletedTi
|
|
|
),
|
|
|
),
|
|
|
Positioned(
|
|
|
- top: 41.w,
|
|
|
+ top: 48.w,
|
|
|
right: 16.w,
|
|
|
width: 20.w,
|
|
|
height: 20.w,
|