Commit c527a1c3 authored by DatHV's avatar DatHV
Browse files

update card detail

parent 4bd580fa
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,
);
}
......
......@@ -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),
],
......
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