A flutter package for make your life easy. This package is used for maintaining a cart.
To use this plugin, add flutter_cart
as a dependency in your pubspec.yaml file.
var cart = FlutterCart();
Add Items into cart
cart.addToCart(
{@required dynamic productId,
@required dynamic unitPrice,
@required int quantity,
dynamic uniqueCheck,
dynamic productDetailsObject});
Remove item one by one from cart ➖
cart.decrementItemFromCart(index);
Add item one by one to cart ➕
cart.incrementItemToCart(index);
Get the total amount
cart.getTotalAmount()
Get the total quantity
cart.getCartItemCount()
Get Specific Item from Cart
cart.getSpecificItemFromCart(cartId)
Author: osamaasifoak
The Demo/Documentation: View The Demo/Documentation
Download Link: Download The Source Code
Official Website: https://github.com/osamaasifoak/flutter_cart
License: MIT
#flutter