A beautiful and efficient personal expense tracking mobile application built with Flutter 3.24+, featuring local database storage, interactive charts, and responsive design for Android and iOS devices.
- Screenshots
- Features
- Getting Started
- CI/CD & Deployment
- Project Structure
- Technologies Used
- Contributing
- License
- β Save Daily Expenses - Track your spending with title, amount, and date
- β Interactive Charts - Visual spending chart for recent 7 days
- β Delete with Confirmation - Alert dialogue before deleting expenses
- β Local Database - SQLite integration for persistent data storage
- β Transaction History - View all your expenses in a scrollable list
- β Beautiful UI - Modern Material Design with custom theming
- β Responsive Design - Optimized for both portrait and landscape modes
- β Adaptive Layouts - Different UI arrangements based on orientation
- β Custom Fonts - Google Fonts (Open Sans & Quicksand)
- β Smooth Performance - Optimized rendering and database queries
- β Empty State - Friendly illustration when no transactions exist
- β Cross-platform - Works seamlessly on Android and iOS
- β Offline-first - All data stored locally
- β High Performance - Smooth scrolling and fast operations
- β Type Safety - Full Dart type safety
- β Modular Code - Reusable widgets and components
Before you begin, ensure you have the following installed:
- Flutter SDK (3.35.6 or higher)
flutter --version
- Dart SDK (3.5.0 or higher)
- Android Studio or VS Code with Flutter extensions
- Git
-
Clone the repository
git clone https://github.com/Rezuanul-Islam-Fahim/personal_expenses.git cd personal_expenses -
Install dependencies
flutter pub get
-
Verify Flutter setup
flutter doctor
flutter runflutter build apk --releaseThis project includes an automated CI/CD pipeline that builds and deploys the app to Appetize.io for instant browser-based testing.
- β Automatic APK Building - Builds universal release APK on pull requests to master
- β Appetize Integration - Deploys to Appetize.io for instant browser testing
- β Smart App Management - Creates new apps or updates existing ones based on APPETIZE_PUBLIC_KEY
- β Smart Caching - 3-layer caching (Java, Flutter SDK, Pub dependencies) for 3-5x faster builds
- β Version Management - Automatic versioning with build numbers from pubspec.yaml
- β Artifact Storage - 30-day APK artifact retention with direct download links via artifact ID
- β PR Integration - Automatic deployment info with direct APK download links in pull request comments
- β First-Time Setup Helper - Automatic instructions for saving public key on first deployment
| Build Type | Duration | Caching |
|---|---|---|
| First Build | ~10-15 min | Full build with all dependencies |
| Cached Build | ~2-3 min | 3-5x faster with 3-layer smart caching (Java, Flutter, Pub) |
- Architecture Diagram - Visual workflow overview and pipeline stages
- Set up Appetize.io account and get your API token
- Add GitHub Secret:
APPETIZE_API_TOKEN(Settings β Secrets β Actions) - Create pull request to master branch - Workflow runs automatically
- Check workflow output - View build results in GitHub Actions tab
- Save public key (first deployment only):
- Check workflow summary for the public key
- Add
APPETIZE_PUBLIC_KEYto GitHub Secrets - Future deployments will update the same app
- Review deployment - Check PR comments for live preview URL and direct APK download link
That's it! The workflow automatically builds and deploys your app to Appetize.io on every PR to master, with direct download links using artifact IDs.
| Secret Name | Required | Purpose |
|---|---|---|
APPETIZE_API_TOKEN |
β Yes | Authenticates with Appetize.io API |
APPETIZE_PUBLIC_KEY |
Updates existing app (prevents creating new instances) |
Note: Without
APPETIZE_PUBLIC_KEY, each deployment creates a new app. Add it after first deployment to enable app updates.
personal_expenses/
βββ lib/
β βββ main.dart # App entry point
β βββ theme.dart # App theme configuration
β βββ global.dart # Global constants
β βββ models/ # Data models
β β βββ expense.dart # Expense model
β βββ widgets/ # Reusable UI components
β βββ add_transaction.dart # Add expense form
β βββ chart.dart # Weekly chart widget
β βββ chartbar.dart # Individual chart bar
β βββ delete_tx_dialogue.dart
β βββ no_transaction_image.dart
β βββ transaction_list.dart # Transaction list view
β βββ tx_list_item.dart # Single transaction item
βββ assets/ # Static assets
β βββ fonts/ # Custom fonts
β βββ images/ # Images and illustrations
βββ .github/ # GitHub workflows and CI/CD
β βββ workflows/
β β βββ build-and-deploy-appetize.yml
β βββ ARCHITECTURE.md # CI/CD documentation
β βββ CONTRIBUTING.md # Contributing guidelines
βββ android/ # Android-specific files
βββ ios/ # iOS-specific files
βββ pubspec.yaml # Project dependencies
βββ README.md # This file
| Technology | Description |
|---|---|
| UI framework | |
| Programming language | |
| Local database | |
| Design system | |
| CI/CD automation |
intl(^0.19.0): Internationalization and date formattingsqflite(^2.3.3): SQLite database pluginpath(^1.9.0): Cross-platform path manipulationcupertino_icons(^1.0.8): iOS-style icons
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch
git checkout -b feature/AmazingFeature
- Commit your Changes (following Conventional Commits)
git commit -m 'feat: add some AmazingFeature' - Push to the Branch
git push origin feature/AmazingFeature
- Open a Pull Request
- Follow Effective Dart guidelines
- Write meaningful commit messages (Conventional Commits)
- Add comments for complex logic
- Update documentation as needed
MIT License
Copyright (c) 2020 Rezuanul Islam Fahim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

