mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 14:18:57 +03:30
Improve navigation back
This commit is contained in:
@@ -122,7 +122,7 @@ class _ItemResultScreenState extends State<ItemResultScreen> {
|
||||
color: Colors.white,
|
||||
size: 35,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
onPressed: () => Navigator.of(context).pushNamed(Routes.homePage),
|
||||
),
|
||||
),
|
||||
body: Consumer<ConnectivityProvider>(
|
||||
@@ -251,24 +251,27 @@ class _ItemResultScreenState extends State<ItemResultScreen> {
|
||||
color: Colors.black,
|
||||
),
|
||||
)
|
||||
: itemResults.items?.length != 0 ?
|
||||
ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) {
|
||||
// remove extra ,
|
||||
return ItemItemBox(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
item: itemResults.items?[index],
|
||||
: itemResults.items?.length != 0
|
||||
? ListView.builder(
|
||||
controller: sc,
|
||||
itemBuilder: (context, index) {
|
||||
// remove extra ,
|
||||
return ItemItemBox(
|
||||
deviceBlockSize:
|
||||
_deviceBlockSize,
|
||||
item: itemResults.items?[index],
|
||||
);
|
||||
},
|
||||
itemCount:
|
||||
itemResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
)
|
||||
: Container(
|
||||
child: Center(
|
||||
child: Text(
|
||||
"There is no item to show."),
|
||||
),
|
||||
);
|
||||
},
|
||||
itemCount: itemResults.items?.length,
|
||||
shrinkWrap: true,
|
||||
) :
|
||||
Container(
|
||||
child: Center(
|
||||
child: Text("There is no item to show."),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user