Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’° Personal Expenses

Flutter Dart License Build and Deploy

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.

πŸš€ Try it Live

Live Demo

⭐ Support this project

GitHub stars GitHub forks GitHub watchers


πŸ“‹ Table of Contents


πŸ“± Screenshots


✨ Features

πŸ“Š Core Functionality

  • βœ… 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

🎨 User Experience

  • βœ… 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

πŸš€ Technical Features

  • βœ… 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

πŸš€ Getting Started

Prerequisites

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

Installation

  1. Clone the repository

    git clone https://github.com/Rezuanul-Islam-Fahim/personal_expenses.git
    cd personal_expenses
  2. Install dependencies

    flutter pub get
  3. Verify Flutter setup

    flutter doctor

Running the App

For Android

flutter run

Build APK (Android)

flutter build apk --release

πŸ”„ CI/CD & Deployment

This project includes an automated CI/CD pipeline that builds and deploys the app to Appetize.io for instant browser-based testing.

πŸš€ Automated Deployment Features

  • βœ… 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 Performance

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)

πŸ“š Documentation

🎯 Quick Start CI/CD

  1. Set up Appetize.io account and get your API token
  2. Add GitHub Secret: APPETIZE_API_TOKEN (Settings β†’ Secrets β†’ Actions)
  3. Create pull request to master branch - Workflow runs automatically
  4. Check workflow output - View build results in GitHub Actions tab
  5. Save public key (first deployment only):
    • Check workflow summary for the public key
    • Add APPETIZE_PUBLIC_KEY to GitHub Secrets
    • Future deployments will update the same app
  6. 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.

πŸ”‘ Required Secrets

Secret Name Required Purpose
APPETIZE_API_TOKEN βœ… Yes Authenticates with Appetize.io API
APPETIZE_PUBLIC_KEY ⚠️ Recommended 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.


πŸ“‚ Project Structure

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

πŸ› οΈ Technologies Used

Technology Description
Flutter UI framework
Dart Programming language
SQLite Local database
Material Design Design system
GitHub Actions CI/CD automation

Key Dependencies

  • intl (^0.19.0): Internationalization and date formatting
  • sqflite (^2.3.3): SQLite database plugin
  • path (^1.9.0): Cross-platform path manipulation
  • cupertino_icons (^1.0.8): iOS-style icons

🀝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

How to Contribute

  1. Fork the Project
  2. Create your Feature Branch
    git checkout -b feature/AmazingFeature
  3. Commit your Changes (following Conventional Commits)
    git commit -m 'feat: add some AmazingFeature'
  4. Push to the Branch
    git push origin feature/AmazingFeature
  5. Open a Pull Request

Coding Standards

  • Follow Effective Dart guidelines
  • Write meaningful commit messages (Conventional Commits)
  • Add comments for complex logic
  • Update documentation as needed

License

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.

About

A Flutter (Dart) personal expense tracker for logging daily transactions, storing them locally, and visualizing weekly spending in a simple chart.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages