This commit is contained in:
Phuoc Nguyen
2025-12-11 16:55:25 +07:00
parent fc6a4f038e
commit 4546e7d8e8
15 changed files with 91 additions and 106 deletions

View File

@@ -230,7 +230,7 @@ class DesignRequestDetailPage extends ConsumerWidget {
children: [
// Request ID
Text(
'#${request.id}',
'${request.id}',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.w700,

View File

@@ -509,40 +509,35 @@ class _RequestCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Header: Code and Status
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
'Mã yêu cầu: #${request.id}',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w700,
color: colorScheme.onSurface,
),
overflow: TextOverflow.ellipsis,
),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 6,
),
decoration: BoxDecoration(
color: _getStatusBackgroundColor(),
borderRadius: BorderRadius.circular(20),
),
child: Text(
request.statusText.toUpperCase(),
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: _getStatusColor(),
),
const SizedBox(width: 8),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 12,
vertical: 6,
),
decoration: BoxDecoration(
color: _getStatusBackgroundColor(),
borderRadius: BorderRadius.circular(20),
),
child: Text(
request.statusText.toUpperCase(),
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: _getStatusColor(),
),
),
),
],
),
),
const SizedBox(height: 8),
Text(
'Mã yêu cầu: #${request.id}',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w700,
color: colorScheme.onSurface,
),
overflow: TextOverflow.ellipsis,
),
const SizedBox(height: 8),
@@ -566,16 +561,16 @@ class _RequestCard extends StatelessWidget {
),
),
if (request.plainDescription.isNotEmpty) ...[
const SizedBox(height: 4),
// Description
Text(
request.plainDescription,
style: TextStyle(fontSize: 14, color: colorScheme.onSurfaceVariant),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
],
// if (request.plainDescription.isNotEmpty) ...[
// const SizedBox(height: 4),
// // Description
// Text(
// request.plainDescription,
// style: TextStyle(fontSize: 14, color: colorScheme.onSurfaceVariant),
// maxLines: 2,
// overflow: TextOverflow.ellipsis,
// ),
// ],
],
),
),