diff --git a/lib/screens/add_products_screen.dart b/lib/screens/add_products_screen.dart index 6fe4fa4..e53ca14 100644 --- a/lib/screens/add_products_screen.dart +++ b/lib/screens/add_products_screen.dart @@ -30,6 +30,7 @@ class _AddProductsScreenState extends State { provider = Provider.of(context, listen: false); await provider.getProducts(); setState(() { + provider.selectedProducts.clear(); filteredProducts = provider.productList; }); } @@ -212,7 +213,9 @@ class _AddProductsScreenState extends State { backgroundColor: const Color(0xff004791), onPressed: () { provider - .submitSelectedProducts("PrincipalDistributor", "66a0e19c981736b70ed4e34e") + .submitSelectedProducts( + "PrincipalDistributor", + "66a0e19c981736b70ed4e34e") .then((value) { if (value) { Navigator.push( diff --git a/lib/screens/update_inventory_screen.dart b/lib/screens/update_inventory_screen.dart index f858e81..a85db6a 100644 --- a/lib/screens/update_inventory_screen.dart +++ b/lib/screens/update_inventory_screen.dart @@ -43,12 +43,14 @@ class _UpdateInventoryScreenState extends State { padding: const EdgeInsets.only(right: 20), ), ], - title: const Text('Update Inventory Data', - style: TextStyle( - fontSize: 20, - color: Colors.black, - fontWeight: FontWeight.w400, - fontFamily: 'Anek')), + title: const Text( + 'Update Inventory Data', + style: TextStyle( + fontSize: 20, + color: Colors.black, + fontWeight: FontWeight.w400, + fontFamily: 'Anek'), + ), backgroundColor: Colors.transparent, elevation: 0, ),