Commit 4bd580fa authored by DatHV's avatar DatHV
Browse files

update game card detail, mobile card

parent b75a9279
import '../../mobile_card/models/product_mobile_card_model.dart'; import '../../mobile_card/models/product_mobile_card_model.dart';
import '../../mobile_card/models/usable_voucher_model.dart';
class MyVoucherResponse { class MyVoucherResponse {
final int? listStart; final int? listStart;
final int? listLimit; final int? listLimit;
final int? listTotal; final int? listTotal;
final List<ProductMobileCardModel>? listItems; final List<UsableVoucherModel>? listItems;
MyVoucherResponse({ MyVoucherResponse({
this.listStart, this.listStart,
...@@ -19,7 +20,7 @@ class MyVoucherResponse { ...@@ -19,7 +20,7 @@ class MyVoucherResponse {
listLimit: json['list_limit'] as int?, listLimit: json['list_limit'] as int?,
listTotal: json['list_total'] as int?, listTotal: json['list_total'] as int?,
listItems: (json['list_items'] as List<dynamic>?) listItems: (json['list_items'] as List<dynamic>?)
?.map((e) => ProductMobileCardModel.fromJson(e as Map<String, dynamic>)) ?.map((e) => UsableVoucherModel.fromJson(e as Map<String, dynamic>))
.toList(), .toList(),
); );
} }
......
...@@ -42,7 +42,8 @@ import '../screen/transaction/history/transaction_history_detail_screen.dart'; ...@@ -42,7 +42,8 @@ import '../screen/transaction/history/transaction_history_detail_screen.dart';
import '../screen/transaction/transaction_detail_screen.dart'; import '../screen/transaction/transaction_detail_screen.dart';
import '../screen/transaction/transactions_history_screen.dart'; import '../screen/transaction/transactions_history_screen.dart';
import '../screen/voucher/detail/voucher_detail_screen.dart'; import '../screen/voucher/detail/voucher_detail_screen.dart';
import '../screen/voucher/my_voucher/my_mobile_card_list_widget.dart'; import '../screen/voucher/mobile_card/my_mobile_card_detail_widget.dart';
import '../screen/voucher/mobile_card/my_mobile_card_list_widget.dart';
import '../screen/voucher/my_voucher/my_product_list_widget.dart'; import '../screen/voucher/my_voucher/my_product_list_widget.dart';
import '../screen/voucher/voucher_list/voucher_list_screen.dart'; import '../screen/voucher/voucher_list/voucher_list_screen.dart';
import '../screen/vplay_game_center/vplay_game_center_screen.dart'; import '../screen/vplay_game_center/vplay_game_center_screen.dart';
...@@ -97,6 +98,7 @@ const myMobileCardListScreen = '/myMobileCardListScreen'; ...@@ -97,6 +98,7 @@ const myMobileCardListScreen = '/myMobileCardListScreen';
const bankAccountManagerScreen = '/bankAccountManagerScreen'; const bankAccountManagerScreen = '/bankAccountManagerScreen';
const historyPointScreen = '/historyPointScreen'; const historyPointScreen = '/historyPointScreen';
const qrCodeScreen = '/qrCodeScreen'; const qrCodeScreen = '/qrCodeScreen';
const myMobileCardDetailScreen = '/myMobileCardDetailScreen';
class RouterPage { class RouterPage {
static List<GetPage> pages() { static List<GetPage> pages() {
...@@ -162,6 +164,7 @@ class RouterPage { ...@@ -162,6 +164,7 @@ class RouterPage {
GetPage(name: bankAccountManagerScreen, page: () => BankAccountManagerScreen()), GetPage(name: bankAccountManagerScreen, page: () => BankAccountManagerScreen()),
GetPage(name: historyPointScreen, page: () => HistoryPointScreen()), GetPage(name: historyPointScreen, page: () => HistoryPointScreen()),
GetPage(name: qrCodeScreen, page: () => QRCodeScreen()), GetPage(name: qrCodeScreen, page: () => QRCodeScreen()),
GetPage(name: myMobileCardDetailScreen, page: () => MyMobileCardDetailScreen()),
]; ];
} }
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev ...@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.21.11+2025101801 version: 1.21.11+2025102401
environment: environment:
sdk: ^3.7.0 sdk: ^3.7.0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment