Bug fix
This commit is contained in:
parent
5391d953a7
commit
60ae618071
@ -30,6 +30,7 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
|
||||
provider = Provider.of<ProductProvider>(context, listen: false);
|
||||
await provider.getProducts();
|
||||
setState(() {
|
||||
provider.selectedProducts.clear();
|
||||
filteredProducts = provider.productList;
|
||||
});
|
||||
}
|
||||
@ -212,7 +213,9 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
|
||||
backgroundColor: const Color(0xff004791),
|
||||
onPressed: () {
|
||||
provider
|
||||
.submitSelectedProducts("PrincipalDistributor", "66a0e19c981736b70ed4e34e")
|
||||
.submitSelectedProducts(
|
||||
"PrincipalDistributor",
|
||||
"66a0e19c981736b70ed4e34e")
|
||||
.then((value) {
|
||||
if (value) {
|
||||
Navigator.push(
|
||||
|
@ -43,12 +43,14 @@ class _UpdateInventoryScreenState extends State<UpdateInventoryScreen> {
|
||||
padding: const EdgeInsets.only(right: 20),
|
||||
),
|
||||
],
|
||||
title: const Text('Update Inventory Data',
|
||||
title: const Text(
|
||||
'Update Inventory Data',
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.w400,
|
||||
fontFamily: 'Anek')),
|
||||
fontFamily: 'Anek'),
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
elevation: 0,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user