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
@@ -251,7 +251,8 @@ class _ItemResultScreenState extends State<ItemResultScreen> {
color: Colors.black,
),
)
: ListView.builder(
: itemResults.items?.length != null ?
ListView.builder(
controller: sc,
itemBuilder: (context, index) {
// remove extra ,
@@ -262,7 +263,12 @@ class _ItemResultScreenState extends State<ItemResultScreen> {
},
itemCount: itemResults.items?.length,
shrinkWrap: true,
);
) :
Container(
child: Center(
child: Text("There is no item to show."),
),
);
},
),
),