mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 06:58:55 +03:30
Fix test results status
This commit is contained in:
@@ -42,11 +42,9 @@ class DatasBox extends StatelessWidget {
|
||||
color: Color.fromRGBO(230, 230, 230, 1),
|
||||
border: Border(
|
||||
left: BorderSide(
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
color: datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
: datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
width: 2,
|
||||
@@ -64,11 +62,9 @@ class DatasBox extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
style: TextStyle(
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
color: datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
: datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
),
|
||||
@@ -77,11 +73,9 @@ class DatasBox extends StatelessWidget {
|
||||
Text(
|
||||
datas['test_type_name'],
|
||||
style: TextStyle(
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
color: datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
: datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -216,20 +210,16 @@ class DatasBox extends StatelessWidget {
|
||||
Container(
|
||||
width: 45 * _deviceBlockSize,
|
||||
child: Text(
|
||||
datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
datas['verified'] == 'Verified'
|
||||
? 'Accepted'
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
: datas['verified'] == 'NotVerified'
|
||||
? 'Rejected'
|
||||
: 'Pending..',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
color: datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
: datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user