Dinesh-Sowndar/flutter_billing_app
Tentang
A feature-rich, high-performance offline-first billing and Point of Sale (POS) application built with Flutter. Designed for seamless retail checkout operations featuring barcode scanning, thermal Bluetooth printing, and robust local data persistence.
Bisnis dan keuanganYang dapat Anda lakukan
- Product Management System: Complete CRUD operations for inventory items with barcode/QR code support.
- Smart Checkout System: Rapid cart building via camera-based barcode scanning or manual entry, and robust order calculation functionality.
- Bluetooth Thermal Printing: Direct integration with thermal printers (print_bluetooth_thermal) to instantly output physical receipts.
- Shop Settings & Customization: Centrally managed shop details printed dynamically on receipts.
Pertumbuhan bintang terukur
- dalam 24 jam
- -1
- dalam 7 hari
- -1
- dalam 15 hari
- +2
- dalam 1 bulan
- +21
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asliπ Mobile POS & Billing App
A feature-rich, high-performance offline-first billing and Point of Sale (POS) application built with Flutter. Designed for seamless retail checkout operations featuring barcode scanning, thermal Bluetooth printing, and robust local data persistence.
Screenshot
https://github.com/user-attachments/assets/f2d16454-5408-43b3-b207-cd843bbc2c9e
π― Project Scope
This application serves as a complete offline POS system for small to medium-sized retail shops. It streamlines the checkout process, catalog management, and receipt generation securely entirely on-device.
Core Features:
- Product Management System: Complete CRUD operations for inventory items with barcode/QR code support.
- Smart Checkout System: Rapid cart building via camera-based barcode scanning or manual entry, and robust order calculation functionality.
- Bluetooth Thermal Printing: Direct integration with thermal printers (
print_bluetooth_thermal) to instantly output physical receipts. - Shop Settings & Customization: Centrally managed shop details printed dynamically on receipts.
- Offline-First Architecture: Powered by
Hivefor lightning-fast localized NoSQL data storage. No active internet connectivity required.
π Tech Stack & Architecture
Built leveraging industry-standard architectural principles (Clean Architecture & Feature-Driven Design) ensuring scalability, separation of concerns, and robust testability.
- Framework: Flutter (SDK >=3.1.0)
- State Management:
flutter_bloc - Dependency Injection:
get_it - Routing:
go_router - Local Database:
hive&hive_flutter - Data Modeling:
json_serializable,equatable - Functional Programming:
fpdart - Hardware Integrations:
mobile_scanner(barcodes),print_bluetooth_thermal
π File Structure
The codebase is organized using a Feature-First Clean Architecture utilizing domain-driven concepts.
lib/
βββ core/ # Core application utilities and shared components
β βββ data/ # Global data sources (e.g., Hive initialization)
β βββ error/ # Standardized Failure/Exception models (fpdart compatible)
β βββ theme/ # UI aesthetics, typography, styling
β βββ usecase/ # Base UseCase contracts
β βββ utils/ # Helpers (e.g., PrinterHelper, formatters)
β βββ widgets/ # Reusable global UI widgets (AppBars, generic buttons)
β βββ service_locator.dart # get_it dependency injection setup
β
βββ features/ # Independent feature modules
βββ billing/ # Core POS operations: Cart, Checkout, Invoice Generation
βββ product/ # Inventory management: Adding, Listing, Scanning products
βββ settings/ # App configuration: Printer connections, App settings
βββ shop/ # Shop details configuration
Note: Each feature is further subdivided internally into Clean Architecture layers: data, domain, and presentation.
π‘ Use Cases
- Rapid Billing Entry: A cashier launches the app, navigates to the checkout page, and uses the device camera to instantly scan product barcodes. The products are added to the cart, the total is calculated including taxes, and a receipt is finalized.
- Physical Receipt Generation: After checkout confirmation, the app triggers a connected external Bluetooth thermal POS printer to instantly print an itemized paper receipt with the shopβs header.
- Inventory Sideloading: A manager opens the Product feature to add new stock to the local database, taking a picture of the barcode to bind the SKU for future lightning-fast checkouts.
- No-Connection Operation: The business operates a stall at an exhibition with poor networking. The app functions entirely via its embedded Hive local database and Bluetooth, completely undisturbed by network drops.
π Getting Started
Prerequisites
- Flutter SDK
^3.1.0or higher - Android Studio / Xcode for emulators and building.
- Optional: A physical Android/iOS device and a Bluetooth Thermal Printer for testing hardware integrations natively.
Installation
Clone the repository and navigate to the project directory:
git clone <repository_url> cd billing_appFetch dependencies:
flutter pub getRun code generation (required for Hive adapters and JSON serialization):
dart run build_runner build --delete-conflicting-outputsRun the project:
flutter run
π€ Contributing Guidelines
As a senior-focused project, please adhere to:
- Clean Architecture Rules: Maintain strict boundaries between
domain,data, andpresentationlayers. - Immutable States: Emit only immutable states from BLoCs utilizing
equatable. - No Direct Exceptions in Domain: Utilize
fpdart'sEither<Failure, Type>pattern to handle control flow for exceptions.
Jelajahi proyek terkait
Memuatβ¦