|
@@ -8,6 +8,7 @@ import 'package:auto_route/auto_route.dart';
|
|
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
import 'package:router/ext/auto_router_extensions.dart';
|
|
|
+import 'package:shared/utils/date_time_utils.dart';
|
|
|
import 'package:shared/utils/log_utils.dart';
|
|
|
import 'package:shared/utils/color_utils.dart';
|
|
|
import 'package:widgets/ext/ex_widget.dart';
|
|
@@ -27,7 +28,8 @@ import './rewards_detail_vm.dart';
|
|
|
class RewardsDetailPage extends HookConsumerWidget {
|
|
|
final int? id;
|
|
|
|
|
|
- const RewardsDetailPage({Key? key, @PathParam('id') required this.id}) : super(key: key);
|
|
|
+ const RewardsDetailPage({Key? key, @PathParam('id') required this.id})
|
|
|
+ : super(key: key);
|
|
|
|
|
|
//启动当前页面
|
|
|
static void startInstance({
|
|
@@ -53,6 +55,10 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
String redeemedStart = detailInfo.redeemedStart ?? "";
|
|
|
String redeemedEnd = detailInfo.redeemedEnd ?? "";
|
|
|
String redeemedDate = '$redeemedStart-$redeemedEnd';
|
|
|
+ String? createAt = '${redeemedStart.split(" at ")[0]} ${redeemedStart.split(" at ")[1]}';
|
|
|
+ String? createEnd =
|
|
|
+ '${redeemedEnd.split(" at ")[0]} ${redeemedEnd.split(" at ")[1]}';
|
|
|
+ String cretaeDate = '$createAt-$createEnd';
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
@@ -81,7 +87,10 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
title,
|
|
|
- style: TextStyle(fontSize: 16.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 16.0,
|
|
|
+ color: context.appColors.textBlack,
|
|
|
+ fontWeight: FontWeight.w500),
|
|
|
),
|
|
|
Text(
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
@@ -89,20 +98,27 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
'${S.current.published_date}: $createdAt',
|
|
|
style: TextStyle(
|
|
|
fontSize: 13.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#808DAF'), darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#808DAF'),
|
|
|
+ darkColor: Colors.white),
|
|
|
fontWeight: FontWeight.w400),
|
|
|
).marginOnly(bottom: 5),
|
|
|
Row(
|
|
|
children: [
|
|
|
Text(
|
|
|
'$point',
|
|
|
- style: TextStyle(fontSize: 19.0, color: context.appColors.textBlack, fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 19.0,
|
|
|
+ color: context.appColors.textBlack,
|
|
|
+ fontWeight: FontWeight.w500),
|
|
|
),
|
|
|
Text(
|
|
|
'$originalPoint',
|
|
|
style: TextStyle(
|
|
|
decoration: TextDecoration.lineThrough,
|
|
|
- decorationColor: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#808DAF'), darkColor: Colors.white),
|
|
|
+ decorationColor: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#808DAF'),
|
|
|
+ darkColor: Colors.white),
|
|
|
decorationStyle: TextDecorationStyle.solid,
|
|
|
fontSize: 12.0,
|
|
|
color: ColorUtils.string2Color('#808DAF'),
|
|
@@ -110,7 +126,10 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
).marginOnly(left: 5, right: 5),
|
|
|
Text(
|
|
|
S.current.points,
|
|
|
- style: TextStyle(fontSize: 13.0, color: context.appColors.textBlack, fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 13.0,
|
|
|
+ color: context.appColors.textBlack,
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
@@ -118,11 +137,13 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
description,
|
|
|
style: TextStyle(
|
|
|
fontSize: 13.0,
|
|
|
- color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#808DAF'), darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#808DAF'),
|
|
|
+ darkColor: Colors.white),
|
|
|
fontWeight: FontWeight.w400),
|
|
|
).marginOnly(bottom: 10, top: 10),
|
|
|
Container(
|
|
|
- height: 68,
|
|
|
+ height: 28,
|
|
|
decoration: BoxDecoration(
|
|
|
color: ColorUtils.string2Color('#F2F3F6'),
|
|
|
borderRadius:
|
|
@@ -135,16 +156,18 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailDay,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
- ).marginOnly(right: 5),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
+ ),
|
|
|
Text(
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
- '$redeemedStart',
|
|
|
+ '$cretaeDate',
|
|
|
style: TextStyle(
|
|
|
fontSize: 14.0,
|
|
|
color: ColorUtils.string2Color('#808DAF'),
|
|
@@ -152,47 +175,52 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
)
|
|
|
],
|
|
|
).paddingOnly(left: 7, right: 12),
|
|
|
- Text(
|
|
|
- maxLines: 1, // 设置最大行数为2
|
|
|
- overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
- '|',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14.0,
|
|
|
- color: ColorUtils.string2Color('#808DAF'),
|
|
|
- fontWeight: FontWeight.w400),
|
|
|
- ),
|
|
|
- Text(
|
|
|
- maxLines: 1, // 设置最大行数为2
|
|
|
- overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
- '$redeemedEnd',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14.0,
|
|
|
- color: ColorUtils.string2Color('#808DAF'),
|
|
|
- fontWeight: FontWeight.w400),
|
|
|
- ).marginOnly(left: 30)
|
|
|
+ // Text(
|
|
|
+ // maxLines: 1, // 设置最大行数为2
|
|
|
+ // overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
+ // '|',
|
|
|
+ // style: TextStyle(
|
|
|
+ // fontSize: 14.0,
|
|
|
+ // color: ColorUtils.string2Color('#808DAF'),
|
|
|
+ // fontWeight: FontWeight.w400),
|
|
|
+ // ),
|
|
|
+ // Text(
|
|
|
+ // maxLines: 1, // 设置最大行数为2
|
|
|
+ // overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
+ // '$redeemedEnd',
|
|
|
+ // style: TextStyle(
|
|
|
+ // fontSize: 14.0,
|
|
|
+ // color: ColorUtils.string2Color('#808DAF'),
|
|
|
+ // fontWeight: FontWeight.w400),
|
|
|
+ // ).marginOnly(left: 30)
|
|
|
],
|
|
|
)),
|
|
|
Container(
|
|
|
height: 28,
|
|
|
decoration: BoxDecoration(
|
|
|
color: ColorUtils.string2Color('#F2F3F6'),
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
+ borderRadius:
|
|
|
+ const BorderRadius.all(Radius.circular(6.0)),
|
|
|
),
|
|
|
child: Row(
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailRequired,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
- ).marginOnly(right: 5),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
+ ),
|
|
|
Text(
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
- reservation ? S.current.reservation_required : S.current.no_reservation_required,
|
|
|
+ reservation
|
|
|
+ ? S.current.reservation_required
|
|
|
+ : S.current.no_reservation_required,
|
|
|
style: TextStyle(
|
|
|
fontSize: 14.0,
|
|
|
color: ColorUtils.string2Color('#808DAF'),
|
|
@@ -216,7 +244,10 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
decoration: const BoxDecoration(
|
|
|
color: Colors.white,
|
|
|
borderRadius: BorderRadius.all(Radius.circular(6.0)),
|
|
|
- boxShadow: [BoxShadow(color: Color.fromRGBO(184, 191, 217, 0.3), blurRadius: 6)],
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: Color.fromRGBO(184, 191, 217, 0.3), blurRadius: 6)
|
|
|
+ ],
|
|
|
),
|
|
|
width: MediaQuery.of(context).size.width - 30,
|
|
|
child: Column(
|
|
@@ -227,34 +258,44 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailDeal,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
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),
|
|
|
)
|
|
|
],
|
|
|
),
|
|
|
Container(
|
|
|
height: 77,
|
|
|
decoration: BoxDecoration(
|
|
|
- color:DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#F2F3F6'),darkColor: Colors.white),
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(6.0)),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#F2F3F6'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ borderRadius:
|
|
|
+ const BorderRadius.all(Radius.circular(6.0)),
|
|
|
),
|
|
|
child: Row(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsIndex1,
|
|
|
width: 60,
|
|
|
height: 60,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 15),
|
|
|
Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
@@ -263,13 +304,23 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
'Delibowl Group',
|
|
|
- style: TextStyle(fontSize: 15.0, color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w500),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(context,
|
|
|
+ ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w500),
|
|
|
).marginOnly(bottom: 8),
|
|
|
Text(
|
|
|
maxLines: 1, // 设置最大行数为2
|
|
|
overflow: TextOverflow.ellipsis, // 超出部分用省略号表示
|
|
|
'#01-136, SingPost Center, 408600',
|
|
|
- style: TextStyle(fontSize: 14.0, color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.0,
|
|
|
+ color: DarkThemeUtil.multiColors(context,
|
|
|
+ ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
)
|
|
|
],
|
|
|
).paddingOnly(
|
|
@@ -284,13 +335,20 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Text(
|
|
|
'Also redeemable in 1 more location',
|
|
|
- style: TextStyle(fontSize: 15.0, color:DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsRight,
|
|
|
width: 12,
|
|
|
height: 16,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
@@ -306,10 +364,10 @@ class RewardsDetailPage 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(
|
|
@@ -320,15 +378,20 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailPackage,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
Text(
|
|
|
'What’s In The Package',
|
|
|
- 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),
|
|
@@ -337,7 +400,12 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Text(
|
|
|
package,
|
|
|
- style: TextStyle(fontSize: 15.0, color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
@@ -353,10 +421,10 @@ class RewardsDetailPage 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(
|
|
@@ -367,15 +435,20 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailNotice,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
Text(
|
|
|
S.current.redemption_notice,
|
|
|
- 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),
|
|
@@ -384,7 +457,12 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Text(
|
|
|
notice,
|
|
|
- style: TextStyle(fontSize: 15.0, color:DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
@@ -399,8 +477,8 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
return Column(
|
|
|
children: [
|
|
|
Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: context.appColors.whiteBG ,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.whiteBG,
|
|
|
borderRadius: BorderRadius.all(Radius.circular(6.0)),
|
|
|
boxShadow: [BoxShadow(color: context.appColors.itemBGShadow)],
|
|
|
),
|
|
@@ -413,15 +491,20 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailInstructions,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
Text(
|
|
|
S.current.redemption_instructions,
|
|
|
- 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),
|
|
@@ -430,7 +513,12 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Text(
|
|
|
S.current.redemption_reservation_txt,
|
|
|
- style: TextStyle(fontSize: 15.0, color: DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
@@ -441,15 +529,16 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
).marginOnly(left: 15, bottom: 15, right: 15);
|
|
|
}
|
|
|
|
|
|
- Widget _buildRedeemable(BuildContext context, WidgetRef ref, _vm, detailInfo) {
|
|
|
+ Widget _buildRedeemable(
|
|
|
+ BuildContext context, WidgetRef ref, _vm, detailInfo) {
|
|
|
List? redeemable = detailInfo!.redeemable ?? [];
|
|
|
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(
|
|
@@ -460,15 +549,20 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyAssetImage(
|
|
|
+ MyAssetImage(
|
|
|
Assets.rewardsRewardsDetailNotice,
|
|
|
width: 25,
|
|
|
height: 25,
|
|
|
- color: DarkThemeUtil.multiColors(context, AppColorsTheme.colorPrimary, darkColor: Colors.white),
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, AppColorsTheme.colorPrimary,
|
|
|
+ darkColor: Colors.white),
|
|
|
).marginOnly(right: 10),
|
|
|
Text(
|
|
|
S.current.redeemable_on,
|
|
|
- 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),
|
|
@@ -480,7 +574,12 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
final item = redeemable[index];
|
|
|
return Text(
|
|
|
'${item.day}: ${item.time}',
|
|
|
- style: TextStyle(fontSize: 15.0, color:DarkThemeUtil.multiColors(context, ColorUtils.string2Color('#54638C'),darkColor: Colors.white), fontWeight: FontWeight.w400),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 15.0,
|
|
|
+ color: DarkThemeUtil.multiColors(
|
|
|
+ context, ColorUtils.string2Color('#54638C'),
|
|
|
+ darkColor: Colors.white),
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
);
|
|
|
},
|
|
|
),
|
|
@@ -536,7 +635,8 @@ class RewardsDetailPage extends HookConsumerWidget {
|
|
|
_buildPackage(context, ref, _vm, detailInfo),
|
|
|
_buildNotice(context, ref, _vm, detailInfo),
|
|
|
// _buildInstructions(context, ref, _vm),
|
|
|
- _buildRedeemable(context, ref, _vm, detailInfo),
|
|
|
+ _buildRedeemable(
|
|
|
+ context, ref, _vm, detailInfo),
|
|
|
],
|
|
|
)),
|
|
|
],
|