mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-14 00:48:55 +03:30
Set 'There is no item to show' to all menu screens
This commit is contained in:
@@ -72,7 +72,12 @@ class _LabelResultScreenState extends State<LabelResultScreen> {
|
||||
),
|
||||
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(
|
||||
@@ -171,16 +176,24 @@ class _LabelResultScreenState extends State<LabelResultScreen> {
|
||||
color: Colors.black,
|
||||
),
|
||||
)
|
||||
: ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) =>
|
||||
LabelItemBox(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
item: labelResults.items?[index],
|
||||
),
|
||||
itemCount: labelResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
);
|
||||
: labelResults.items?.length != null
|
||||
? ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) =>
|
||||
LabelItemBox(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
item: labelResults.items?[index],
|
||||
),
|
||||
itemCount:
|
||||
labelResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
)
|
||||
: Container(
|
||||
child: Center(
|
||||
child: Text(
|
||||
"There is no item to show."),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user