mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 07:38:53 +03:30
Fix status of items in detail screens
This commit is contained in:
@@ -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