UI_TCKT_LIST_BUGFIX

This commit is contained in:
venbaittech 2025-08-22 16:17:30 +05:30
parent 160b46652e
commit a20c3a38b8
3 changed files with 23 additions and 10 deletions

View File

@ -959,7 +959,7 @@ class _claimtracklistformState extends State<claimtracklist> {
value ?? '', // Null check for value
textAlign: TextAlign.start,
softWrap: true,
maxLines: 20,
maxLines: 50,
overflow: TextOverflow.ellipsis,
style: GoogleFonts.poppins(
fontSize: Responsive.isDesktop(context) ? 14 : 12,

View File

@ -234,8 +234,10 @@ class _helpState extends State<help> {
ticketList = response['data'].toList();
print("TC1 - $ticketList");
reversedTicketList = List<Map<String, dynamic>>.from(ticketList);
reversedTicketList = List<Map<String, dynamic>>.from(ticketList);
print("TC2 - $ticketList");
ticketList = reversedTicketList.reversed.toList();
// ticketList = reversedTicketList.reversed.toList();
ticketList = reversedTicketList.toList();
print("TC3 - $ticketList");
});
// }
@ -524,7 +526,7 @@ class _helpState extends State<help> {
Navigator.pushNamed(context, 'tickets');
},
child: Text(
'Raise a Ticket',
'Raise a Support',
style: GoogleFonts.poppins(color: Colors.white),
),
style: ElevatedButton.styleFrom(
@ -586,7 +588,7 @@ class _helpState extends State<help> {
Expanded(
child: _buildTabButton(
context: context,
title: "Tickets",
title: "Supports",
isActive: tickets == 0,
onTap: () {
setState(() {
@ -640,7 +642,7 @@ class _helpState extends State<help> {
SizedBox(width: 10),
_buildTabButton(
context: context,
title: "Tickets",
title: "Supports",
isActive: tickets == 0,
onTap: () {
setState(() {
@ -1509,6 +1511,14 @@ class _helpState extends State<help> {
statusColor = Color(0xFF979797); // Default color if status is null
}
final truncatedSubject = Responsive.isDesktop(context)
? (claimsSubject.length > 30
? '${claimsSubject.substring(0, 30)}...'
: claimsSubject)
: (claimsSubject.length > 15
? '${claimsSubject.substring(0, 10)}...'
: claimsSubject);
return GestureDetector(
onTap: () {
print("Navigating with thz_id: ${item['thz_id']}");
@ -1587,7 +1597,10 @@ class _helpState extends State<help> {
),
),
Text(
' (TCKT : $claimsticket)' ?? '',
Responsive.isDesktop(context)
? ' (Ticket Id #$claimsticket)'
: ' (Tkt #$claimsticket)' ??
'',
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize: Responsive.isDesktop(
@ -1607,9 +1620,7 @@ class _helpState extends State<help> {
child: Tooltip(
message: claimsSubject,
child: Text(
claimsSubject.length > 30
? '${claimsSubject.substring(0, 30)}...'
: claimsSubject,
truncatedSubject,
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize:

View File

@ -361,7 +361,7 @@ class _ticketsState extends State<tickets> {
: MainAxisAlignment.start,
children: [
Text(
'Raise a Ticket',
'Raise a Support',
textAlign: TextAlign.start,
style: GoogleFonts.poppins(
fontSize:
@ -629,6 +629,7 @@ class _ticketsState extends State<tickets> {
controller: controller,
decoration: InputDecoration(labelText: label),
keyboardType: keyboardType,
maxLength: 150,
validator: (value) {
if (value == null || value.isEmpty) {
return 'Please enter the $label';
@ -643,6 +644,7 @@ class _ticketsState extends State<tickets> {
controller: controller,
decoration: InputDecoration(labelText: label),
maxLines: 5,
maxLength: 1500,
validator: (value) {
if (value == null || value.isEmpty) {
return 'Please enter the $label';