tiendita 0.0.2
tiendita: ^0.0.2 copied to clipboard
A Flutter package for building modern e-commerce applications with seamless API integration. Tiendita provides reusable widgets, data models, and networking utilities specifically designed for marketp [...]
Changelog #
All notable changes to this project will be documented in this file.
0.0.1 #
Initial release of the Tiendita package.
Features #
-
Product API Support
- Fetch all products with optional pagination and sorting
- Fetch single product by ID
- Get all product categories
- Filter products by category
-
Cart API Support
- Full CRUD operations for shopping carts
- Get all carts with date range filtering
- Get carts by user ID
- Add, update, and delete carts
-
Core Utilities
Result<T>sealed class for type-safe error handling- Pattern matching support with
OkandErrorsubclasses - Custom exception hierarchy:
TienditaException(base)NetworkExceptionServerExceptionParseExceptionNotFoundExceptionAuthException
-
Data Models
ProductwithRatingfor product dataCartwithCartProductfor cart data- JSON serialization support
-
Repository Layer
ProductRepositorywith in-memory cachingCartRepositorywith in-memory caching- Cache invalidation and force refresh support
-
Example App
- Complete Flutter app demonstrating package usage
- MVVM architecture with
ChangeNotifier - Product listing with grid view
- Category filtering
- Product detail view
- Error handling with retry