fear: rev 2
This commit is contained in:
@@ -214,8 +214,24 @@ class _HomePageState extends State<HomePage> {
|
||||
final filteredProducts =
|
||||
_filterProducts(products);
|
||||
if (filteredProducts.isEmpty) {
|
||||
return const Center(
|
||||
child: Text('No Items Found'),
|
||||
return Center(
|
||||
child: Column(
|
||||
children: [
|
||||
Text('No Items Found'),
|
||||
SpaceHeight(20),
|
||||
Button.filled(
|
||||
width: 120,
|
||||
onPressed: () {
|
||||
context
|
||||
.read<
|
||||
ProductLoaderBloc>()
|
||||
.add(const ProductLoaderEvent
|
||||
.getProduct());
|
||||
},
|
||||
label: 'Retry',
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
return GridView.builder(
|
||||
|
||||
Reference in New Issue
Block a user