Preface
- What you will build
- What you will use
- A short and honest disclaimer
- How this book works
- The book’s motto
- What you need to start
- A note on pace
- Who wrote this
- How to get the most out of this book
- How to begin
Chapter 1: Why Build Your Own Finance Tracker
- What you will learn
- Why it matters
- Where the spreadsheet quietly wins and loses
- What the AI coding agent changes
- What this looks like in practice
- A month in the life of five apps
- What “owning your own tool” actually means
- The three honest limits
- When to use an existing app instead
- The honest case for building
- A very short first prompt
- How a first week actually looks
- The honest cost of building
- A five-minute decision loop
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 2: Setting Up Flutter and Your AI Coding Workflow
- What you will learn
- Why it matters
- Step 1: Install Flutter
- Step 2: Install the Android tools
- Step 3: Prepare a device
- Step 4: Create the project folder
- Step 5: Install OpenCode
- Step 6: Write your rules file
- Step 7: Make your first checkpoint
- Step 8: Learn to talk to the agent
- Step 9: Learn the two modes
- Step 10: Your first conversation
- What a good result looks like
- What the AI typically produces and how to check it
- A setup day that went wrong
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 3: Writing the Product Spec
- What you will learn
- Why it matters
- The six parts of a spec
- Step 1: Write the problem
- Step 2: Name the persona
- Step 3: List the screens
- Step 4: Write user stories
- Step 5: Sketch the data
- Step 6: Write acceptance criteria
- Step 7: Add non-goals
- Step 8: Ask the agent to review the spec
- Step 9: Write the build order
- What a good result looks like
- Turning one story into one build prompt
- A worked review, so you know what to expect
- A spec prompt to reuse
- What the AI typically produces and how to check it
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 4: Local Database with SQLite
- What you will learn
- Why it matters
- What a database layer looks like
- Step 1: Add the packages
- Step 2: Ask for the schema first
- Step 3: Build the database file
- Step 4: Show the database path on screen
- Step 5: Understand versions and migrations
- Step 6: Add row classes and one repository
- Step 7: Check it with a quick test
- What the AI typically produces and how to check it
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 5: Budget Categories and Accounts
- What you will learn
- Why it matters
- Category or account: a quick way to remember
- Step 1: Seed the defaults
- Step 2: Build the category list screen
- Step 3: Add edit and archive
- Step 4: Build the account list with balances
- Step 5: Test the balance by hand
- Step 6: Wire the screens together
- What the AI typically produces and how to check it
- The double-counting trap
- A worked balance, so the numbers feel real
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 6: Recording and Browsing Transactions
- What you will learn
- Why it matters
- The ten-second rule
- Step 1: The add transaction form
- Step 2: List this month’s transactions
- Step 3: Add the Home summary
- Step 4: Filter and search
- Step 5: Edit and delete
- Step 6: The transfer trap (and why we skip it)
- What the AI typically produces and how to check it
- The month boundary, carefully
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 7: Reports and Charts
- What you will learn
- Why it matters
- The three honest rules of a report
- Step 1: Add the chart package
- Step 2: Spending by category for one month
- Step 3: One chart
- Step 4: The six-month trend
- Step 5: Keep the reports read-only
- What the AI typically produces and how to check it
- A worked report, so you can check percentages
- One query, two views
- What a report cannot tell you
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 8: Tracking US Stocks with Live Prices
- What you will learn
- A word before we start
- Why it matters
- The plan: borrow, cache, and be honest
- Step 1: Add the network and key packages
- Step 2: Build the holdings screen
- Step 3: Design the price source abstraction
- Step 4: Cache the last good price
- Step 5: Show the value and the “last updated” time
- Step 6: Keep the key out of the code
- What the AI typically produces and how to check it
- What “graceful failure” actually looks like
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 9: Backup, Export, and Import
- What you will learn
- Why it matters
- Two kinds of export, two jobs
- Step 1: Add the file and sharing packages
- Step 2: Export to CSV
- Step 3: Share the exported file
- Step 4: Full JSON backup
- Step 5: Import with checks
- Step 6: Rehearse the disaster
- What the AI typically produces and how to check it
- A safe backup habit
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 10: Testing and Fixing What the AI Gets Wrong
- What you will learn
- Why it matters
- Layer one: the manual test plan
- Layer two: a few small automated tests
- The mistakes the AI makes most often
- How to describe a bug so it gets fixed
- The escalation ladder
- Reading the diff, and using /undo
- A workflow that catches bugs early
- What a good result looks like
- A real bug, start to finish
- What not to automate yet
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 11: Privacy and Security for Personal Financial Data
- What you will learn
- Why it matters
- Start with a threat model
- Step 1: Add a device lock
- Step 2: Block screenshots (optional, Android)
- Step 3: Keep secrets out of Git
- Step 4: Make backups safe
- Step 5: Practice data minimization
- Why we did not build a login
- What this app cannot protect against
- A security review prompt
- What the AI typically produces and how to check it
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Chapter 12: Building and Releasing Your App
- What you will learn
- Why it matters
- Step 1: Set the app name, icon, and version
- Step 2: Understand debug and release
- Step 3: Create a signing key
- Step 4: Build the release APK
- Step 5: Test the release build like a new user
- Step 6: Decide about Google Play
- Step 7: Write a short release note
- After the release: keeping the app alive
- If you want to extend the app
- What a good result looks like
- What the AI typically produces and how to check it
- Common mistakes and fixes
- Chapter checklist
- Summary
- Try it yourself
Appendix A: Prompt Templates
- 1. Spec prompt (plan first, before any code)
- 2. Feature prompt (one small, runnable step)
- 3. Bug-fix prompt (full evidence, small territory)
- 4. Refactor prompt (same behavior, cleaner code)
- 5. Security and data review prompt (every season)
- 6. Price source prompt (choose and verify before building)
- How to adapt these
Appendix B: Checklists
- Pre-release checklist (before you build a release)
- Privacy checklist (monthly or before sharing anything)
- Backup checklist (weekly)
- Money-data sanity checklist (monthly)
- New-feature checklist (each time you add something)
- Recovery checklist (when something is lost)
Appendix C: Troubleshooting
- Setup problems
- Package and dependency problems
- Running and UI problems
- Database problems
- Network and price problems
- Release-build problems
- Agent problems
- When to stop and rest