Offline POS: store stock as a ledger, not a counter
by Stacklyn Labs dev.to
2 min read
Here is a stock bug that throws no error, passes every single-device test, and still loses inventory. The counter model The obvious model is a number on the product: product.stock = 12; // on each sale: product.stock -= quantitySold; On one device it works. Now add a second till, and let both work offline. Both tills start with stock = 12. Till A sells 2, so it stores 10. Till B sells 3, so it st…
More like this
- Package
tiagosito/easy_search
Powerful Complete and Beautiful Search Component for Flutter - GitHub - tiagosito/easy_search: Powerful Complete and Beautiful Search Component for Flutter
View on github.com
Article 4 min readHow To Implement Online & Offline Connectivity In Flutter
In this tutorial, we'll learn how to implement Online & Offline connectivity in flutter apps. Their time comes when we need to check the Internet connection
Read on alltechsavvy.com
Article 12 min readExploring Streams in Flutter
Hi Folks! I am back with a brand new article. This time we will be talking about Streams in Flutter. What is Stream and how to use them in…
Read on medium.com