This commit is contained in:
kratikpal 2024-08-16 10:23:42 +05:30
parent 5391d953a7
commit 60ae618071
2 changed files with 12 additions and 7 deletions

View File

@ -30,6 +30,7 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
provider = Provider.of<ProductProvider>(context, listen: false); provider = Provider.of<ProductProvider>(context, listen: false);
await provider.getProducts(); await provider.getProducts();
setState(() { setState(() {
provider.selectedProducts.clear();
filteredProducts = provider.productList; filteredProducts = provider.productList;
}); });
} }
@ -212,7 +213,9 @@ class _AddProductsScreenState extends State<AddProductsScreen> {
backgroundColor: const Color(0xff004791), backgroundColor: const Color(0xff004791),
onPressed: () { onPressed: () {
provider provider
.submitSelectedProducts("PrincipalDistributor", "66a0e19c981736b70ed4e34e") .submitSelectedProducts(
"PrincipalDistributor",
"66a0e19c981736b70ed4e34e")
.then((value) { .then((value) {
if (value) { if (value) {
Navigator.push( Navigator.push(

View File

@ -43,12 +43,14 @@ class _UpdateInventoryScreenState extends State<UpdateInventoryScreen> {
padding: const EdgeInsets.only(right: 20), padding: const EdgeInsets.only(right: 20),
), ),
], ],
title: const Text('Update Inventory Data', title: const Text(
style: TextStyle( 'Update Inventory Data',
fontSize: 20, style: TextStyle(
color: Colors.black, fontSize: 20,
fontWeight: FontWeight.w400, color: Colors.black,
fontFamily: 'Anek')), fontWeight: FontWeight.w400,
fontFamily: 'Anek'),
),
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
elevation: 0, elevation: 0,
), ),