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

cập nhật ui. logic

parent fa01087d
......@@ -144,7 +144,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
Widget _buildInvitationSection() {
return GestureDetector(
onTap: () {
print("Invitation tapped");
Get.toNamed(inviteFriendCampaignScreen);
},
child: Container(
color: Colors.grey[100],
......@@ -178,7 +178,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
Widget _buildMenuItems() {
final menuItems = [
{'icon': Icons.monetization_on_outlined, 'title': 'Săn điểm', 'type': 'APP_SCREEN_POINT_HUNTING'},
{'icon': Icons.check_box_outlined, 'title': 'Check-in nhận quà', 'type': ''},
{'icon': Icons.check_box_outlined, 'title': 'Check-in nhận quà', 'type': 'DAILY_CHECKIN'},
{'icon': Icons.emoji_events_outlined, 'title': 'Bảng xếp hạng', 'type': ''},
{'icon': Icons.gif_box_outlined, 'title': 'Ưu đãi của tôi', 'type': 'APP_SCREEN_MY_PURCHASE_ITEMS'},
{'icon': Icons.receipt_long_outlined, 'title': 'Lịch sử giao dịch', 'sectionDivider': true, 'type': ''},
......
......@@ -135,7 +135,7 @@ class _VoucherDetailScreenState extends BaseState<VoucherDetailScreen> with Basi
fit: BoxFit.cover,
height: imageHeight,
width: double.infinity,
placeholderAsset: 'assets/images/sample.png',
placeholderAsset: 'assets/images/bg_default_169.png',
),
Positioned(
left: 16,
......
......@@ -6,10 +6,13 @@ import '../screen/affiliate/affiliate_tab_screen.dart';
import '../screen/affiliate_brand_detail/affiliate_brand_detail_screen.dart';
import '../screen/affiliate_brand_detail/affiliate_brand_list_screen.dart';
import '../screen/affiliate_brand_detail/affiliate_category_grid_screen.dart';
import '../screen/contacts/contacts_list_screen.dart';
import '../screen/daily_checkin/daily_checkin_screen.dart';
import '../screen/data_network_service/data_network_service_screen.dart';
import '../screen/game/game_cards/game_card_screen.dart';
import '../screen/game/game_tab_screen.dart';
import '../screen/history_point_cashback/history_point_cashback_screen.dart';
import '../screen/invite_friend_campaign/invite_friend_campaign_screen.dart';
import '../screen/location_address/location_address_screen.dart';
import '../screen/login/login_screen.dart';
import '../screen/main_tab_screen/main_tab_screen.dart';
......@@ -67,6 +70,9 @@ const historyPointCashBackScreen = '/historyPointCashBackScreen';
const affiliateBrandDetailScreen = '/affiliateBrandDetailScreen';
const affiliateBrandListScreen = '/affiliateBrandListScreen';
const affiliateCategoryGridScreen = '/affiliateCategoryGridScreen';
const inviteFriendCampaignScreen = '/inviteFriendCampaignScreen';
const contactsListScreen = '/contactsListScreen';
const dailyCheckInScreen = '/dailyCheckInScreen';
class RouterPage {
static List<GetPage> pages() {
......@@ -110,6 +116,9 @@ class RouterPage {
GetPage(name: affiliateBrandDetailScreen, page: () => AffiliateBrandDetailScreen()),
GetPage(name: affiliateBrandListScreen, page: () => AffiliateBrandListScreen()),
GetPage(name: affiliateCategoryGridScreen, page: () => AffiliateCategoryGridScreen()),
GetPage(name: inviteFriendCampaignScreen, page: () => InviteFriendCampaignScreen()),
GetPage(name: contactsListScreen, page: () => ContactsListScreen()),
GetPage(name: dailyCheckInScreen, page: () => DailyCheckInScreen()),
];
}
}
......
......@@ -51,10 +51,10 @@ class CustomNavigationBar extends StatelessWidget implements PreferredSizeWidget
child: Stack(
alignment: Alignment.center,
children: [
// Title ở giữa
Text(
title,
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white),
maxLines: 1,
style: const TextStyle(fontSize: 17, fontWeight: FontWeight.bold, color: Colors.white),
textAlign: TextAlign.center,
),
// Back button bên trái
......
......@@ -56,7 +56,9 @@ dependencies:
package_info_plus: ^4.1.0
dotted_border: ^2.0.0
contacts_service: ^0.6.3
flutter_contacts: ^1.1.6
permission_handler: ^11.0.0
share_plus: ^7.2.1
game_miniapp:
path: ../mini_app/game_miniapp
dev_dependencies:
......
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