FIOMOL STUDIO

TallerManager

A robust Offline-First mobile ERP for workshop management. Handling complex Recipe Calculations, Inventory State, and Cloud Synchronization.

FlutterFirebaseClean ArchitectureProvider

Architectural Evolution

Migrating from a monolithic Service-Layer pattern to a modular scalable architecture to handle growing business logic complexity.

Current State

Layered Architecture using Provider for state injection. Features separate Presentation, Logic, and Data layers. Uses Batch Writes for transactional integrity during massive inventory updates.

The Transition

Moving Domain Logic (Price Calculations, Recipe recursions) out of Services into dedicated Use Cases. Implementing Repository patterns to decouple Firestore dependencies.

Optimization

Replacing full-collection streams with paginated queries and Cloud Functions triggers to handle stock deduction safely on the server-side, reducing client load.

System Design

Flutter Mobile ClientPresentation (UI/Widgets)Domain (Use Cases / Providers)Data (Repositories / Services)Firebase CloudFirestore (NoSQL)Cloud Functions (Triggers)Remote Config / AuthSync

Security & Integrity

Moving strictly from client-side logic to server-side validation. Hardcoded keys migrated to environment variables and Remote Config for hot-swapping beta tester lists.

Complex Data

Handling "Recipe Fabrication" transactions: deducting raw materials recursively and adding finished products in a single atomic batch write.