Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hoàng Văn Đạt
mypoint_flutter_app
Commits
4c376d38
Commit
4c376d38
authored
Jul 11, 2025
by
DatHV
Browse files
cập nhật ui. logic
parent
fa01087d
Changes
25
Show whitespace changes
Inline
Side-by-side
lib/screen/personal/personal_screen.dart
View file @
4c376d38
...
@@ -144,7 +144,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
...
@@ -144,7 +144,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
Widget
_buildInvitationSection
()
{
Widget
_buildInvitationSection
()
{
return
GestureDetector
(
return
GestureDetector
(
onTap:
()
{
onTap:
()
{
print
(
"Invitation tapped"
);
Get
.
toNamed
(
inviteFriendCampaignScreen
);
},
},
child:
Container
(
child:
Container
(
color:
Colors
.
grey
[
100
],
color:
Colors
.
grey
[
100
],
...
@@ -178,7 +178,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
...
@@ -178,7 +178,7 @@ class _PersonalScreenState extends BaseState<PersonalScreen> with BasicState {
Widget
_buildMenuItems
()
{
Widget
_buildMenuItems
()
{
final
menuItems
=
[
final
menuItems
=
[
{
'icon'
:
Icons
.
monetization_on_outlined
,
'title'
:
'Săn điểm'
,
'type'
:
'APP_SCREEN_POINT_HUNTING'
},
{
'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
.
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
.
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'
:
''
},
{
'icon'
:
Icons
.
receipt_long_outlined
,
'title'
:
'Lịch sử giao dịch'
,
'sectionDivider'
:
true
,
'type'
:
''
},
...
...
lib/screen/voucher/detail/voucher_detail_screen.dart
View file @
4c376d38
...
@@ -135,7 +135,7 @@ class _VoucherDetailScreenState extends BaseState<VoucherDetailScreen> with Basi
...
@@ -135,7 +135,7 @@ class _VoucherDetailScreenState extends BaseState<VoucherDetailScreen> with Basi
fit:
BoxFit
.
cover
,
fit:
BoxFit
.
cover
,
height:
imageHeight
,
height:
imageHeight
,
width:
double
.
infinity
,
width:
double
.
infinity
,
placeholderAsset:
'assets/images/
sample
.png'
,
placeholderAsset:
'assets/images/
bg_default_169
.png'
,
),
),
Positioned
(
Positioned
(
left:
16
,
left:
16
,
...
...
lib/shared/router_gage.dart
View file @
4c376d38
...
@@ -6,10 +6,13 @@ import '../screen/affiliate/affiliate_tab_screen.dart';
...
@@ -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_detail_screen.dart'
;
import
'../screen/affiliate_brand_detail/affiliate_brand_list_screen.dart'
;
import
'../screen/affiliate_brand_detail/affiliate_brand_list_screen.dart'
;
import
'../screen/affiliate_brand_detail/affiliate_category_grid_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/data_network_service/data_network_service_screen.dart'
;
import
'../screen/game/game_cards/game_card_screen.dart'
;
import
'../screen/game/game_cards/game_card_screen.dart'
;
import
'../screen/game/game_tab_screen.dart'
;
import
'../screen/game/game_tab_screen.dart'
;
import
'../screen/history_point_cashback/history_point_cashback_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/location_address/location_address_screen.dart'
;
import
'../screen/login/login_screen.dart'
;
import
'../screen/login/login_screen.dart'
;
import
'../screen/main_tab_screen/main_tab_screen.dart'
;
import
'../screen/main_tab_screen/main_tab_screen.dart'
;
...
@@ -67,6 +70,9 @@ const historyPointCashBackScreen = '/historyPointCashBackScreen';
...
@@ -67,6 +70,9 @@ const historyPointCashBackScreen = '/historyPointCashBackScreen';
const
affiliateBrandDetailScreen
=
'/affiliateBrandDetailScreen'
;
const
affiliateBrandDetailScreen
=
'/affiliateBrandDetailScreen'
;
const
affiliateBrandListScreen
=
'/affiliateBrandListScreen'
;
const
affiliateBrandListScreen
=
'/affiliateBrandListScreen'
;
const
affiliateCategoryGridScreen
=
'/affiliateCategoryGridScreen'
;
const
affiliateCategoryGridScreen
=
'/affiliateCategoryGridScreen'
;
const
inviteFriendCampaignScreen
=
'/inviteFriendCampaignScreen'
;
const
contactsListScreen
=
'/contactsListScreen'
;
const
dailyCheckInScreen
=
'/dailyCheckInScreen'
;
class
RouterPage
{
class
RouterPage
{
static
List
<
GetPage
>
pages
()
{
static
List
<
GetPage
>
pages
()
{
...
@@ -110,6 +116,9 @@ class RouterPage {
...
@@ -110,6 +116,9 @@ class RouterPage {
GetPage
(
name:
affiliateBrandDetailScreen
,
page:
()
=>
AffiliateBrandDetailScreen
()),
GetPage
(
name:
affiliateBrandDetailScreen
,
page:
()
=>
AffiliateBrandDetailScreen
()),
GetPage
(
name:
affiliateBrandListScreen
,
page:
()
=>
AffiliateBrandListScreen
()),
GetPage
(
name:
affiliateBrandListScreen
,
page:
()
=>
AffiliateBrandListScreen
()),
GetPage
(
name:
affiliateCategoryGridScreen
,
page:
()
=>
AffiliateCategoryGridScreen
()),
GetPage
(
name:
affiliateCategoryGridScreen
,
page:
()
=>
AffiliateCategoryGridScreen
()),
GetPage
(
name:
inviteFriendCampaignScreen
,
page:
()
=>
InviteFriendCampaignScreen
()),
GetPage
(
name:
contactsListScreen
,
page:
()
=>
ContactsListScreen
()),
GetPage
(
name:
dailyCheckInScreen
,
page:
()
=>
DailyCheckInScreen
()),
];
];
}
}
}
}
...
...
lib/widgets/custom_navigation_bar.dart
View file @
4c376d38
...
@@ -51,10 +51,10 @@ class CustomNavigationBar extends StatelessWidget implements PreferredSizeWidget
...
@@ -51,10 +51,10 @@ class CustomNavigationBar extends StatelessWidget implements PreferredSizeWidget
child:
Stack
(
child:
Stack
(
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
children:
[
children:
[
// Title ở giữa
Text
(
Text
(
title
,
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
,
textAlign:
TextAlign
.
center
,
),
),
// Back button bên trái
// Back button bên trái
...
...
pubspec.yaml
View file @
4c376d38
...
@@ -56,7 +56,9 @@ dependencies:
...
@@ -56,7 +56,9 @@ dependencies:
package_info_plus
:
^4.1.0
package_info_plus
:
^4.1.0
dotted_border
:
^2.0.0
dotted_border
:
^2.0.0
contacts_service
:
^0.6.3
contacts_service
:
^0.6.3
flutter_contacts
:
^1.1.6
permission_handler
:
^11.0.0
permission_handler
:
^11.0.0
share_plus
:
^7.2.1
game_miniapp
:
game_miniapp
:
path
:
../mini_app/game_miniapp
path
:
../mini_app/game_miniapp
dev_dependencies
:
dev_dependencies
:
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment