Fix status of items in detail screens

This commit is contained in:
fhkhd
2024-01-30 21:05:19 +03:30
parent dc944d9ce2
commit 2dc4c6b416
3 changed files with 6 additions and 6 deletions
@@ -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,
),