Koshly's database: 15 SQLite tables on the phone, grouped into money, history, SMS import and the app itself

Expense Tracker Database Design: A Flutter Drift Schema

In my last post I said the database behind Koshly, my offline expense tracker, was ready for sync. A reader showed me it wasn’t. Prikshit pointed out in the comments that I was using updatedAt to decide which edit wins. Phone clocks drift. If my phone is five minutes ahead, my old edit can beat your new one. Deletes have the same problem: a phone that was offline for a week can bring a deleted transaction back. ...

December 4, 2026 · 7 min · 1334 words · Hitesh Patel
Offline-First Flutter: how I made it sync-ready. A phone with a local Drift database, a dashed cloud for sync later, and uuid, updatedAt and deletedAt

Offline-First Flutter with Drift: How I Made It Sync-Ready

When I started Koshly, my first thought was to build a server. That’s how I always built apps. A Flutter app, an API, a database in the cloud and a login screen. You sign up once and your expenses are there on any phone you use. But I didn’t build Koshly that way. There is no server for your data and no login. Everything is saved in a database on your phone. And the more I worked on it, the more I felt this was the better choice. ...

November 30, 2026 · 5 min · 1049 words · Hitesh Patel
Flutter modular architecture visualization

Building Scalable Flutter Apps With Modules

Every challenge is a chance to learn. And as a developer, we face them quite frequently. Sometimes a product decision lands on your desk that sounds straightforward, but whether it becomes scalable and maintainable depends entirely on how you build it. And honestly, it’s not just the product’s fate at stake — it’s yours too. I didnt wanted to be hauted by bugs at night. That’s exactly what happened to me not too long ago and here is how i dealt with it. ...

May 22, 2026 · 5 min · 1037 words · Hitesh Patel
Dart syntactic sugar features

9 Dart Syntactic Sugar Features That Make My Codebase Happier

I’ve been using Dart for more than 2 years now and after jumping in and out of Kotlin and some other languages, I realized something, Dart has a ton of syntactic sugar that I use daily without even realizing it — and these features quietly make my life somuch easier. Whenever I switch to another language, I start to miss these tiny conveniences — from the power of named/unnamed parameters,to null-aware operators, to the spread operator that makes Flutter codebase so clean. ...

January 15, 2026 · 3 min · 581 words · Hitesh Patel