UI_TCKT_LIST_BUGFIX
This commit is contained in:
parent
160b46652e
commit
a20c3a38b8
@ -959,7 +959,7 @@ class _claimtracklistformState extends State<claimtracklist> {
|
|||||||
value ?? '', // Null check for value
|
value ?? '', // Null check for value
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
softWrap: true,
|
softWrap: true,
|
||||||
maxLines: 20,
|
maxLines: 50,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(
|
||||||
fontSize: Responsive.isDesktop(context) ? 14 : 12,
|
fontSize: Responsive.isDesktop(context) ? 14 : 12,
|
||||||
|
|||||||
@ -234,8 +234,10 @@ class _helpState extends State<help> {
|
|||||||
ticketList = response['data'].toList();
|
ticketList = response['data'].toList();
|
||||||
print("TC1 - $ticketList");
|
print("TC1 - $ticketList");
|
||||||
reversedTicketList = List<Map<String, dynamic>>.from(ticketList);
|
reversedTicketList = List<Map<String, dynamic>>.from(ticketList);
|
||||||
|
reversedTicketList = List<Map<String, dynamic>>.from(ticketList);
|
||||||
print("TC2 - $ticketList");
|
print("TC2 - $ticketList");
|
||||||
ticketList = reversedTicketList.reversed.toList();
|
// ticketList = reversedTicketList.reversed.toList();
|
||||||
|
ticketList = reversedTicketList.toList();
|
||||||
print("TC3 - $ticketList");
|
print("TC3 - $ticketList");
|
||||||
});
|
});
|
||||||
// }
|
// }
|
||||||
@ -524,7 +526,7 @@ class _helpState extends State<help> {
|
|||||||
Navigator.pushNamed(context, 'tickets');
|
Navigator.pushNamed(context, 'tickets');
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'Raise a Ticket',
|
'Raise a Support',
|
||||||
style: GoogleFonts.poppins(color: Colors.white),
|
style: GoogleFonts.poppins(color: Colors.white),
|
||||||
),
|
),
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
@ -586,7 +588,7 @@ class _helpState extends State<help> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: _buildTabButton(
|
child: _buildTabButton(
|
||||||
context: context,
|
context: context,
|
||||||
title: "Tickets",
|
title: "Supports",
|
||||||
isActive: tickets == 0,
|
isActive: tickets == 0,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -640,7 +642,7 @@ class _helpState extends State<help> {
|
|||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
_buildTabButton(
|
_buildTabButton(
|
||||||
context: context,
|
context: context,
|
||||||
title: "Tickets",
|
title: "Supports",
|
||||||
isActive: tickets == 0,
|
isActive: tickets == 0,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -1509,6 +1511,14 @@ class _helpState extends State<help> {
|
|||||||
statusColor = Color(0xFF979797); // Default color if status is null
|
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(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
print("Navigating with thz_id: ${item['thz_id']}");
|
print("Navigating with thz_id: ${item['thz_id']}");
|
||||||
@ -1587,7 +1597,10 @@ class _helpState extends State<help> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
' (TCKT : $claimsticket)' ?? '',
|
Responsive.isDesktop(context)
|
||||||
|
? ' (Ticket Id #$claimsticket)'
|
||||||
|
: ' (Tkt #$claimsticket)' ??
|
||||||
|
'',
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(
|
||||||
fontSize: Responsive.isDesktop(
|
fontSize: Responsive.isDesktop(
|
||||||
@ -1607,9 +1620,7 @@ class _helpState extends State<help> {
|
|||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: claimsSubject,
|
message: claimsSubject,
|
||||||
child: Text(
|
child: Text(
|
||||||
claimsSubject.length > 30
|
truncatedSubject,
|
||||||
? '${claimsSubject.substring(0, 30)}...'
|
|
||||||
: claimsSubject,
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(
|
||||||
fontSize:
|
fontSize:
|
||||||
|
|||||||
@ -361,7 +361,7 @@ class _ticketsState extends State<tickets> {
|
|||||||
: MainAxisAlignment.start,
|
: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'Raise a Ticket',
|
'Raise a Support',
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
style: GoogleFonts.poppins(
|
style: GoogleFonts.poppins(
|
||||||
fontSize:
|
fontSize:
|
||||||
@ -629,6 +629,7 @@ class _ticketsState extends State<tickets> {
|
|||||||
controller: controller,
|
controller: controller,
|
||||||
decoration: InputDecoration(labelText: label),
|
decoration: InputDecoration(labelText: label),
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
|
maxLength: 150,
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value == null || value.isEmpty) {
|
if (value == null || value.isEmpty) {
|
||||||
return 'Please enter the $label';
|
return 'Please enter the $label';
|
||||||
@ -643,6 +644,7 @@ class _ticketsState extends State<tickets> {
|
|||||||
controller: controller,
|
controller: controller,
|
||||||
decoration: InputDecoration(labelText: label),
|
decoration: InputDecoration(labelText: label),
|
||||||
maxLines: 5,
|
maxLines: 5,
|
||||||
|
maxLength: 1500,
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value == null || value.isEmpty) {
|
if (value == null || value.isEmpty) {
|
||||||
return 'Please enter the $label';
|
return 'Please enter the $label';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user