mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 02:58:56 +03:30
Fix test result status
This commit is contained in:
@@ -42,7 +42,13 @@ class DatasBox extends StatelessWidget {
|
||||
color: Color.fromRGBO(230, 230, 230, 1),
|
||||
border: Border(
|
||||
left: BorderSide(
|
||||
color: datas['accepted'] == 'Accepted' ? kLightBlue : kPink,
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
width: 2,
|
||||
),
|
||||
),
|
||||
@@ -58,14 +64,26 @@ class DatasBox extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
style: TextStyle(
|
||||
color: datas['accepted'] == 'Accepted' ? kLightBlue : kPink,
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
),
|
||||
),
|
||||
Divider(),
|
||||
Text(
|
||||
datas['test_type_name'],
|
||||
style: TextStyle(
|
||||
color: datas['accepted'] == 'Accepted' ? kLightBlue : kPink,
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
@@ -198,15 +216,22 @@ class DatasBox extends StatelessWidget {
|
||||
Container(
|
||||
width: 45 * _deviceBlockSize,
|
||||
child: Text(
|
||||
datas['accepted'] == 'Accepted' ||
|
||||
datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
? 'Accepted'
|
||||
: 'Rejected',
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
? 'Rejected'
|
||||
: 'Pending..',
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: datas['accepted'] == 'Accepted'
|
||||
color: datas['accepted'] == 'Accepted' &&
|
||||
datas['verified'] == 'Verified'
|
||||
? kLightBlue
|
||||
: kPink,
|
||||
: datas['accepted'] == 'Not Accepted' &&
|
||||
datas['verified'] == 'NotVerified'
|
||||
? kPink
|
||||
: Colors.grey,
|
||||
),
|
||||
overflow: TextOverflow.clip,
|
||||
),
|
||||
@@ -240,45 +265,45 @@ class DatasBox extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
if(datas['files'].isNotEmpty) Divider(),
|
||||
if(datas['files'].isNotEmpty) SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
if(datas['files'].isNotEmpty) Container(
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 20),
|
||||
child: CarouselSlider.builder(
|
||||
disableGesture: true,
|
||||
itemBuilder: (ctx, index, realIndex) {
|
||||
return InkWell(
|
||||
child: Image(
|
||||
image: NetworkImage(datas['files'][index])
|
||||
),
|
||||
onTap: () {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) => PinchZoom(
|
||||
child: Image.network(datas['files'][index])
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
itemCount: datas['files'].length,
|
||||
options: CarouselOptions(
|
||||
enlargeCenterPage: true,
|
||||
aspectRatio: 16/8,
|
||||
viewportFraction: datas['files'].length == 1 ? 1 : 0.6,
|
||||
padEnds: false,
|
||||
pauseAutoPlayOnTouch: true,
|
||||
disableCenter: false,
|
||||
autoPlay: false,
|
||||
enlargeFactor: 0.5,
|
||||
enableInfiniteScroll:
|
||||
datas['files'].length == 1 ? false : true,
|
||||
if (datas['files'].isNotEmpty) Divider(),
|
||||
if (datas['files'].isNotEmpty)
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
if (datas['files'].isNotEmpty)
|
||||
Container(
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 20),
|
||||
child: CarouselSlider.builder(
|
||||
disableGesture: true,
|
||||
itemBuilder: (ctx, index, realIndex) {
|
||||
return InkWell(
|
||||
child:
|
||||
Image(image: NetworkImage(datas['files'][index])),
|
||||
onTap: () {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) => PinchZoom(
|
||||
child: Image.network(datas['files'][index])),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
itemCount: datas['files'].length,
|
||||
options: CarouselOptions(
|
||||
enlargeCenterPage: true,
|
||||
aspectRatio: 16 / 8,
|
||||
viewportFraction: datas['files'].length == 1 ? 1 : 0.6,
|
||||
padEnds: false,
|
||||
pauseAutoPlayOnTouch: true,
|
||||
disableCenter: false,
|
||||
autoPlay: false,
|
||||
enlargeFactor: 0.5,
|
||||
enableInfiniteScroll:
|
||||
datas['files'].length == 1 ? false : true,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user