add dropdown
This commit is contained in:
@@ -26,9 +26,11 @@ class _WarehouseSelectionPageState
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
// Load warehouses when page is first created
|
||||
// Load warehouses and sync users when page is first created
|
||||
Future.microtask(() {
|
||||
ref.read(warehouseProvider.notifier).loadWarehouses();
|
||||
// Sync users from API and save to local storage
|
||||
ref.read(usersProvider.notifier).syncUsers();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user