flutter_cart 0.0.1 copy "flutter_cart: ^0.0.1" to clipboard
flutter_cart: ^0.0.1 copied to clipboard

outdated

Flutter package for the cart management

Flutter_Cart 🛒 #

[pub package]

A flutter package for make your life easy. This package is use for maintaining a cart.

Usage #

To use this plugin, add flutter_cart as a dependency in your pubspec.yaml file.

Getting Started #

  • first create an instance of flutter cart package.
     var cart = Cart();
  • After getting the instance, we are able to get the built-in methods
    • 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()
      
85
likes
0
pub points
90%
popularity

Publisher

unverified uploader

Flutter package for the cart management

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_cart