mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:38:56 +03:30
Fix status of items in detail screens
This commit is contained in:
@@ -6,7 +6,7 @@ class ItemResultObject extends Equatable {
|
||||
final String name;
|
||||
final String size;
|
||||
final String userName;
|
||||
final int status;
|
||||
final String status;
|
||||
final String? batchId;
|
||||
final String? udi;
|
||||
final String? udi_name;
|
||||
@@ -52,7 +52,7 @@ class ItemDetailObject extends Equatable {
|
||||
final String description;
|
||||
final String createdAt;
|
||||
final String udi;
|
||||
final int status;
|
||||
final String status;
|
||||
final List<String>? filePath;
|
||||
final String? packageId;
|
||||
|
||||
|
||||
@@ -336,10 +336,10 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
Container(
|
||||
width: 45 * _deviceBlockSize,
|
||||
child: Text(
|
||||
datas.status == 1 ? 'Confirmed' : 'Rejected',
|
||||
datas.status == 'approved' ? 'Confirmed' : 'Rejected',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: datas.status == 1 ? kBlue : kPink,
|
||||
color: datas.status == 'approved' ? kBlue : kPink,
|
||||
),
|
||||
overflow: TextOverflow.clip,
|
||||
),
|
||||
|
||||
@@ -346,10 +346,10 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
Container(
|
||||
width: 45 * _deviceBlockSize,
|
||||
child: Text(
|
||||
datas.status == 1 ? 'Success' : 'Failure',
|
||||
datas.status == 'approved' ? 'Success' : 'Failure',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: datas.status == 1 ? kDarkBlue : kPink,
|
||||
color: datas.status == 'approved' ? kDarkBlue : kPink,
|
||||
),
|
||||
overflow: TextOverflow.clip,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user