update cart
This commit is contained in:
@@ -10,40 +10,40 @@ part of 'cart_provider.dart';
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
/// Cart Notifier
|
||||
///
|
||||
/// Manages cart state including:
|
||||
/// - Adding/removing items
|
||||
/// - Updating quantities
|
||||
/// - Warehouse selection
|
||||
/// - Discount code application
|
||||
/// - Cart summary calculations
|
||||
/// Manages cart state with API integration:
|
||||
/// - Adding/removing items (syncs with API)
|
||||
/// - Updating quantities (syncs with API with 5s debounce)
|
||||
/// - Loading cart from API via initialize()
|
||||
/// - Local-only operations: selection, warehouse, calculations
|
||||
/// - keepAlive: true to maintain cart state across navigation
|
||||
|
||||
@ProviderFor(Cart)
|
||||
const cartProvider = CartProvider._();
|
||||
|
||||
/// Cart Notifier
|
||||
///
|
||||
/// Manages cart state including:
|
||||
/// - Adding/removing items
|
||||
/// - Updating quantities
|
||||
/// - Warehouse selection
|
||||
/// - Discount code application
|
||||
/// - Cart summary calculations
|
||||
/// Manages cart state with API integration:
|
||||
/// - Adding/removing items (syncs with API)
|
||||
/// - Updating quantities (syncs with API with 5s debounce)
|
||||
/// - Loading cart from API via initialize()
|
||||
/// - Local-only operations: selection, warehouse, calculations
|
||||
/// - keepAlive: true to maintain cart state across navigation
|
||||
final class CartProvider extends $NotifierProvider<Cart, CartState> {
|
||||
/// Cart Notifier
|
||||
///
|
||||
/// Manages cart state including:
|
||||
/// - Adding/removing items
|
||||
/// - Updating quantities
|
||||
/// - Warehouse selection
|
||||
/// - Discount code application
|
||||
/// - Cart summary calculations
|
||||
/// Manages cart state with API integration:
|
||||
/// - Adding/removing items (syncs with API)
|
||||
/// - Updating quantities (syncs with API with 5s debounce)
|
||||
/// - Loading cart from API via initialize()
|
||||
/// - Local-only operations: selection, warehouse, calculations
|
||||
/// - keepAlive: true to maintain cart state across navigation
|
||||
const CartProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'cartProvider',
|
||||
isAutoDispose: true,
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -64,16 +64,16 @@ final class CartProvider extends $NotifierProvider<Cart, CartState> {
|
||||
}
|
||||
}
|
||||
|
||||
String _$cartHash() => r'fa4c957f9cd7e54000e035b0934ad2bd08ba2786';
|
||||
String _$cartHash() => r'3bb1372a0e87268e35c7c8d424d2d8315b4d09b2';
|
||||
|
||||
/// Cart Notifier
|
||||
///
|
||||
/// Manages cart state including:
|
||||
/// - Adding/removing items
|
||||
/// - Updating quantities
|
||||
/// - Warehouse selection
|
||||
/// - Discount code application
|
||||
/// - Cart summary calculations
|
||||
/// Manages cart state with API integration:
|
||||
/// - Adding/removing items (syncs with API)
|
||||
/// - Updating quantities (syncs with API with 5s debounce)
|
||||
/// - Loading cart from API via initialize()
|
||||
/// - Local-only operations: selection, warehouse, calculations
|
||||
/// - keepAlive: true to maintain cart state across navigation
|
||||
|
||||
abstract class _$Cart extends $Notifier<CartState> {
|
||||
CartState build();
|
||||
@@ -95,22 +95,25 @@ abstract class _$Cart extends $Notifier<CartState> {
|
||||
}
|
||||
|
||||
/// Cart item count provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
|
||||
@ProviderFor(cartItemCount)
|
||||
const cartItemCountProvider = CartItemCountProvider._();
|
||||
|
||||
/// Cart item count provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
|
||||
final class CartItemCountProvider extends $FunctionalProvider<int, int, int>
|
||||
with $Provider<int> {
|
||||
/// Cart item count provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
const CartItemCountProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'cartItemCountProvider',
|
||||
isAutoDispose: true,
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -137,26 +140,29 @@ final class CartItemCountProvider extends $FunctionalProvider<int, int, int>
|
||||
}
|
||||
}
|
||||
|
||||
String _$cartItemCountHash() => r'4ddc2979030a4470b2fa1de4832a84313e98e259';
|
||||
String _$cartItemCountHash() => r'35385f5445be6bf66faf58cbbb450cf6196ee4a8';
|
||||
|
||||
/// Cart total provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
|
||||
@ProviderFor(cartTotal)
|
||||
const cartTotalProvider = CartTotalProvider._();
|
||||
|
||||
/// Cart total provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
|
||||
final class CartTotalProvider
|
||||
extends $FunctionalProvider<double, double, double>
|
||||
with $Provider<double> {
|
||||
/// Cart total provider
|
||||
/// keepAlive: true to persist with cart provider
|
||||
const CartTotalProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'cartTotalProvider',
|
||||
isAutoDispose: true,
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
@@ -183,4 +189,4 @@ final class CartTotalProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$cartTotalHash() => r'48460600487e734788e6d6cf1e4f7e13d21f21a4';
|
||||
String _$cartTotalHash() => r'027326bae4554031852eaa1348cbc900089f6ec1';
|
||||
|
||||
Reference in New Issue
Block a user