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
c527a1c3
Commit
c527a1c3
authored
Sep 30, 2025
by
DatHV
Browse files
update card detail
parent
4bd580fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/screen/voucher/mobile_card/card_recharge_sheet.dart
View file @
c527a1c3
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
import
'../../../widgets/custom_toast_message.dart'
;
class
RechargeSheet
extends
StatelessWidget
{
final
String
code
;
const
RechargeSheet
({
super
.
key
,
required
this
.
code
});
...
...
@@ -67,7 +70,20 @@ class _RechargeTile extends StatelessWidget {
contentPadding:
EdgeInsets
.
zero
,
title:
Text
(
title
,
style:
const
TextStyle
(
fontWeight:
FontWeight
.
w600
)),
subtitle:
Text
(
subtitle
,
style:
const
TextStyle
(
color:
Colors
.
black54
)),
trailing:
const
Icon
(
Icons
.
chevron_right
),
trailing:
Row
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
GestureDetector
(
onTap:
()
{
Clipboard
.
setData
(
ClipboardData
(
text:
subtitle
));
showToastMessage
(
'Đã sao chép'
);
},
child:
Icon
(
Icons
.
copy
)
),
SizedBox
(
width:
12
),
const
Icon
(
Icons
.
chevron_right
),
],
),
onTap:
onTap
,
);
}
...
...
lib/screen/voucher/mobile_card/my_mobile_card_detail_widget.dart
View file @
c527a1c3
...
...
@@ -145,7 +145,7 @@ class _MobileDetailCard extends StatelessWidget {
child:
Row
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
Text
(
'Đ
ã sử dụng'
),
Text
(
vm
.
isUsed
.
value
?
'Đã sử dụng'
:
'Đánh dấu đ
ã sử dụng'
),
const
SizedBox
(
width:
6
),
Icon
(
Icons
.
fiber_manual_record
,
size:
18
,
color:
vm
.
isUsed
.
value
?
const
Color
(
0xFF24C26A
)
:
Colors
.
grey
),
],
...
...
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