mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 00:48:56 +03:30
Add "there is no item to other screens"
This commit is contained in:
@@ -77,7 +77,12 @@ class _TestVerifyScreenState extends State<TestVerifyScreen> {
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
titleSpacing: -10,
|
||||
title: Text('Home', style: TextStyle(color: Colors.white,),),
|
||||
title: Text(
|
||||
'Home',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.black,
|
||||
leading: IconButton(
|
||||
icon: Icon(
|
||||
@@ -231,29 +236,30 @@ class _TestVerifyScreenState extends State<TestVerifyScreen> {
|
||||
color: Colors.black,
|
||||
),
|
||||
)
|
||||
: testResults.items?.length != null ?
|
||||
ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) =>
|
||||
(testResults.items![index].verified == 'None' &&
|
||||
userData['roles']
|
||||
.contains('Supervisor')) ||
|
||||
userData['roles'].contains('Admin')
|
||||
? TestItemBox(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
item: testResults.items![index],
|
||||
id: testResults.items![index].id,
|
||||
userData: userData,
|
||||
)
|
||||
: Container(),
|
||||
itemCount: testResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
) :
|
||||
Container(
|
||||
child: Center(
|
||||
child: Text("There is no item to show."),
|
||||
),
|
||||
);
|
||||
: testResults.items?.length != null
|
||||
? ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) =>
|
||||
(testResults.items![index].verified ==
|
||||
'None' &&
|
||||
userData['roles']
|
||||
.contains('Supervisor')) ||
|
||||
userData['roles'].contains('Admin')
|
||||
? TestItemBox(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
item: testResults.items![index],
|
||||
id: testResults.items![index].id,
|
||||
userData: userData,
|
||||
)
|
||||
: Container(),
|
||||
itemCount: testResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
)
|
||||
: Container(
|
||||
child: Center(
|
||||
child: Text("There is no item to show."),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user