About Smart Expense

A deep dive into the state-of-the-art technologies and custom features implemented inside our personal finance app.

Project Overview

Smart Expense Tracker is designed to bridge the gap between manual money tracking and artificial intelligence. Built with Flutter, it focuses on high responsiveness, zerotheme flicker transitions, secure authentication pathways, and structured reports. The app runs in two distinct environments: offline guest access for complete privacy, or cloud synchronization for seamless cross-device expense tracking.

Implemented Technology Stack

We leverage a collection of modern tools and services to run the app reliably:

Flutter & Dart
Core client framework (v3.11+) supporting state management, clean material design, and custom theme modes.
Firebase Services
Secure email/password and Google Sign-in authentication. Real-time document writes/reads via Cloud Firestore.
Gemini API
Powered by google_generative_ai (gemini-2.5-flash). Performs speech parsing, OCR scanning, recurring bill extraction, and chat logic.
Report Generation
Native PDF rendering engine to construct reports, alongside path_provider and open_filex.

Implemented Features Analysis

This application includes the following specific features verified directly from the code:

1. Dual Data Access Mode
Users can try the app instantly using Guest Mode. In this state, data remains in-memory and local. Logging in with email or a Google account instantly binds transactions to private user documents inside Cloud Firestore, keeping details synced and safe.

2. Gemini AI Processing Pipeline
- AI Voice Entry: Speaks audio, transcripts are captured, and Gemini extracts transaction metadata in structured JSON format.
- AI Receipt Scanning: Image binaries are converted to parts and sent to Gemini Vision, extracting merchants, total amounts, categories, and payment types.
- Interactive Chatbot: Answers personal queries about transactions, utilizing a dynamic system prompt context built on recent expenditure logs.
- Monthly Summaries: On-the-fly monthly financial summaries generated based on actual spending.

3. Predictive Recurring Bill Detection
An automated recurring transaction analyzer that identifies repeat subscription signatures (e.g., Netflix, Spotify, Rent, Electric bills) and forecasts the next due dates to alert users.

4. Localized Insights Engine
A pure Dart-computed analytics solver that evaluates monthly savings rates, identifies the biggest singular expense item, calculates active tracking frequency, and maps category breakdowns without extra server costs.

5. Statement Downloads & Exports
Generates CSV files, tab-separated Excel texts, and fully styled PDF reports (composed of summary stats, category logs, calendar views, and custom date ranges) exported directly to the device's downloads container.