add product updated
This commit is contained in:
parent
96aa3e8549
commit
7e86e93c8e
@ -23,6 +23,8 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
final provider = Provider.of<ProductProvider>(context, listen: false);
|
||||
filteredProducts = provider.productList;
|
||||
}
|
||||
|
||||
void filterProducts(String query) {
|
||||
@ -70,8 +72,6 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
filteredProducts = provider.productList;
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
Column(
|
||||
|
Loading…
Reference in New Issue
Block a user