Doing a shopping using provider in flutter is easy the magic in here is uing the Provider package
it is a hard code example, so you can just adjust it for your specific needs,
in the first view, you will have 3 products for choosing Product 1, Product 2 and Product 3, each of them has got their prices hardcoded,
when you click n any product, you are taken to the products view in which you are going to be able to increase or decrease the amount of items to take
now when you click on the shopping cart, you are taken to the view which shows you all the items you selected
on that last view you increase or decrease any item, as the code is kind of big, you can get it from github
Comments
Post a Comment