Set 'There is no item to show' to all menu screens

This commit is contained in:
fhkhd
2024-01-11 20:39:00 +03:30
parent 4cb3a921f1
commit 80b9fd33b2
9 changed files with 226 additions and 154 deletions
+8 -2
View File
@@ -230,7 +230,8 @@ class _TestVerifyScreenState extends State<TestVerifyScreen> {
color: Colors.black,
),
)
: ListView.builder(
: testResults.items?.length != null ?
ListView.builder(
controller: sc,
itemBuilder: (context, index) =>
(testResults.items![index].verified == 'None' &&
@@ -246,7 +247,12 @@ class _TestVerifyScreenState extends State<TestVerifyScreen> {
: Container(),
itemCount: testResults.items?.length,
shrinkWrap: true,
);
) :
Container(
child: Center(
child: Text("There is no item to show."),
),
);
},
),
),