|
@@ -30,6 +30,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
final String? resources;
|
|
|
final String? redeemedDate;
|
|
|
final String? createdAt;
|
|
|
+
|
|
|
const RewardsSuccessfulPage(
|
|
|
{Key? key,
|
|
|
@PathParam('amount') required this.amount,
|
|
@@ -49,19 +50,9 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
String? createdAt = '',
|
|
|
}) {
|
|
|
if (context != null) {
|
|
|
- context.router.push(RewardsSuccessfulPageRoute(
|
|
|
- amount: amount,
|
|
|
- title: title,
|
|
|
- resources: resources,
|
|
|
- redeemedDate: redeemedDate,
|
|
|
- createdAt: createdAt));
|
|
|
+ context.router.push(RewardsSuccessfulPageRoute(amount: amount, title: title, resources: resources, redeemedDate: redeemedDate, createdAt: createdAt));
|
|
|
} else {
|
|
|
- appRouter.push(RewardsSuccessfulPageRoute(
|
|
|
- amount: amount,
|
|
|
- title: title,
|
|
|
- resources: resources,
|
|
|
- redeemedDate: redeemedDate,
|
|
|
- createdAt: createdAt));
|
|
|
+ appRouter.push(RewardsSuccessfulPageRoute(amount: amount, title: title, resources: resources, redeemedDate: redeemedDate, createdAt: createdAt));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -72,13 +63,10 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
+ decoration: BoxDecoration(
|
|
|
color: context.appColors.whiteBG,
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
- boxShadow: [
|
|
|
- BoxShadow(
|
|
|
- color: context.appColors.itemBGShadow)
|
|
|
- ],
|
|
|
+ boxShadow: [BoxShadow(color: context.appColors.itemBGShadow)],
|
|
|
),
|
|
|
width: MediaQuery.of(context).size.width - 30,
|
|
|
// height: 420,
|
|
@@ -100,10 +88,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
titles,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 17.0,
|
|
|
- color: context.appColors.textBlack,
|
|
|
- fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(fontSize: 17.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
),
|
|
|
],
|
|
|
).paddingOnly(left: 15, right: 15, top: 10, bottom: 30),
|
|
@@ -117,13 +102,10 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color:context.appColors.whiteBG,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.whiteBG,
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
- boxShadow: [
|
|
|
- BoxShadow(
|
|
|
- color: context.appColors.itemBGShadow)
|
|
|
- ],
|
|
|
+ boxShadow: [BoxShadow(color: context.appColors.itemBGShadow)],
|
|
|
),
|
|
|
width: MediaQuery.of(context).size.width - 30,
|
|
|
child: Column(
|
|
@@ -134,17 +116,15 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- const MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailDeal,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
+ color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
).marginOnly(right: 5),
|
|
|
Text(
|
|
|
S.current.redeem_deal_at,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 15.0,
|
|
|
- color: context.appColors.textBlack,
|
|
|
- fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(fontSize: 15.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
)
|
|
|
],
|
|
|
),
|
|
@@ -158,7 +138,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
style: TextStyle(
|
|
|
fontSize: 15.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'), darkColor: Colors.white),
|
|
|
fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
@@ -175,13 +155,10 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: context.appColors.whiteBG ,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.whiteBG,
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
- boxShadow: [
|
|
|
- BoxShadow(
|
|
|
- color: context.appColors.itemBGShadow )
|
|
|
- ],
|
|
|
+ boxShadow: [BoxShadow(color: context.appColors.itemBGShadow)],
|
|
|
),
|
|
|
width: MediaQuery.of(context).size.width - 30,
|
|
|
child: Column(
|
|
@@ -192,17 +169,15 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- const MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsIconDatd,
|
|
|
width: 15,
|
|
|
height: 15,
|
|
|
+ color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
Text(
|
|
|
S.current.redeem_from,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 15.0,
|
|
|
- color: context.appColors.textBlack ,
|
|
|
- fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(fontSize: 15.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
)
|
|
|
],
|
|
|
).marginOnly(bottom: 10),
|
|
@@ -213,7 +188,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
redeemedDates,
|
|
|
style: TextStyle(
|
|
|
fontSize: 15.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'), darkColor: Colors.white),
|
|
|
fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
@@ -230,13 +205,10 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: context.appColors.whiteBG ,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.whiteBG,
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
- boxShadow: [
|
|
|
- BoxShadow(
|
|
|
- color: context.appColors.itemBGShadow )
|
|
|
- ],
|
|
|
+ boxShadow: [BoxShadow(color: context.appColors.itemBGShadow)],
|
|
|
),
|
|
|
width: MediaQuery.of(context).size.width - 30,
|
|
|
child: Column(
|
|
@@ -248,10 +220,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Text(
|
|
|
'${S.current.date_time}:',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 15.0,
|
|
|
- color: context.appColors.tabTextUnSelectedPrimary,
|
|
|
- fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(fontSize: 15.0, color: context.appColors.tabTextUnSelectedPrimary, fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
Row(
|
|
|
children: [
|
|
@@ -259,7 +228,7 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
createdAts,
|
|
|
style: TextStyle(
|
|
|
fontSize: 15.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'), darkColor: Colors.white),
|
|
|
fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
@@ -300,30 +269,26 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
Widget _buildTop(BuildContext context, WidgetRef ref, _vm) {
|
|
|
return Container(
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
- color: context.appColors.whiteBG ,
|
|
|
+ color: context.appColors.whiteBG,
|
|
|
padding: const EdgeInsets.only(top: 15, bottom: 30),
|
|
|
child: Column(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- const MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsSuccess,
|
|
|
width: 54,
|
|
|
height: 54,
|
|
|
+ color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
),
|
|
|
Text(
|
|
|
S.current.you_have_paid_points,
|
|
|
style: TextStyle(
|
|
|
- fontSize: 18.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary,darkColor: Colors.white),
|
|
|
- fontWeight: FontWeight.w500),
|
|
|
+ fontSize: 18.0, color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white), fontWeight: FontWeight.w500),
|
|
|
).marginOnly(top: 12, bottom: 15),
|
|
|
Text(
|
|
|
'$amount',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 30.0,
|
|
|
- color: context.appColors.textBlack ,
|
|
|
- fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(fontSize: 30.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
),
|
|
|
],
|
|
|
));
|
|
@@ -365,14 +330,14 @@ class RewardsSuccessfulPage extends HookConsumerWidget {
|
|
|
))),
|
|
|
Container(
|
|
|
height: 50,
|
|
|
- color:context.appColors.btnBgDefault,
|
|
|
+ color: context.appColors.btnBgDefault,
|
|
|
child: Flex(
|
|
|
direction: Axis.horizontal,
|
|
|
children: [
|
|
|
Expanded(
|
|
|
flex: 1,
|
|
|
child: Container(
|
|
|
- color: context.appColors.btnBgDefault ,
|
|
|
+ color: context.appColors.btnBgDefault,
|
|
|
height: 100,
|
|
|
child: Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|