concept item in category flutter

appears as: items, n item, item, items, An item
Flutter in Action

This is an excerpt from Manning's book Flutter in Action.

A StatefulWidget in the shopping cart application, on the other hand, is the QuantityCounter widget, because it’s managing a piece of stateful data that tracks the number of items you wish to add to your cart. A StatefulWidget object has an associated State object. The State object has special methods such as setState that tell Flutter when it needs to think about repainting.

For a less abstract example, consider our Farmers Market app. Each time an item is added to a users cart, the cart icon should update with the new quantity of items. You could achieve this with a stream.

  • Inputs
    • Add an item to the cart
    • Remove an item from the cart
  • Outputs
    • Get all items in cart
    • Get number of items in the cart