<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Boring CRM]]></title><description><![CDATA[Boring CRM]]></description><link>https://boringcrm.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/699f09b16049477bf66e5af0/99f4ea4c-ed26-4b7f-8b25-6e2d94dd0cc8.png</url><title>Boring CRM</title><link>https://boringcrm.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 00:22:59 GMT</lastBuildDate><atom:link href="https://boringcrm.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building an Offline-First Real Estate CRM with Flutter and SQLite]]></title><description><![CDATA[## Why Offline-First? When I started building a CRM for real estate agents in India, I had one non-negotiable requirement: it must work without internet…]]></description><link>https://boringcrm.hashnode.dev/building-an-offline-first-real-estate-crm-with-flutter-and-sqlite</link><guid isPermaLink="true">https://boringcrm.hashnode.dev/building-an-offline-first-real-estate-crm-with-flutter-and-sqlite</guid><dc:creator><![CDATA[Ubedulla midde]]></dc:creator><pubDate>Wed, 25 Feb 2026 14:51:09 GMT</pubDate><content:encoded><![CDATA[<p>## Why Offline-First?</p>
<p>When I started building a CRM for real estate agents in India, I had one non-negotiable requirement: <strong>it must work without internet.</strong></p>
<p>Not because agents don't have internet. Because they don't want to depend on it. They want their app to open instantly, save data instantly, and never show a loading spinner.</p>
<p>Cloud-first apps have a fundamental problem — they treat offline as an error state. Offline-first apps treat it as the default state.</p>
<p>## The Architecture</p>
<p>Here's how [Boring CRM](<a href="https://boringcrm.in">https://boringcrm.in</a>) is built:</p>
<p>  ┌─────────────────────────────┐</p>
<p>  │         Flutter UI           │</p>
<p>  ├─────────────────────────────┤</p>
<p>  │      Repository Layer        │</p>
<p>  ├─────────────────────────────┤</p>
<p>  │     SQLite (via sqflite)     │</p>
<p>  ├─────────────────────────────┤</p>
<p>  │    Local Device Storage      │</p>
<p>  └─────────────────────────────┘</p>
<p>No API layer. No authentication service. No sync engine. The entire data flow is: UI → Repository → SQLite → Device.</p>
<p>## Tech Stack</p>
<p>- <strong>Flutter</strong> — Cross-platform UI framework</p>
<p>  - <strong>sqflite</strong> — SQLite plugin for Flutter</p>
<p>  - <strong>flutter_local_notifications</strong> — Scheduled push notifications</p>
<p>  - <strong>shared_preferences</strong> — App settings and flags</p>
<p>  - <strong>Firebase Analytics</strong> — Usage tracking (the only thing that needs internet)</p>
<p>## Database Design</p>
<p>The core schema is intentionally simple:</p>
<p>  ```sql</p>
<p>  CREATE TABLE leads (</p>
<p>    id INTEGER PRIMARY KEY AUTOINCREMENT,</p>
<p>    name TEXT NOT NULL,</p>
<p>    phone TEXT,</p>
<p>    email TEXT,</p>
<p>    status TEXT DEFAULT 'new',</p>
<p>    source TEXT,</p>
<p>    property_interest TEXT,</p>
<p>    budget TEXT,</p>
<p>    follow_up_date TEXT,</p>
<p>    notes TEXT,</p>
<p>    created_at TEXT DEFAULT CURRENT_TIMESTAMP,</p>
<p>    updated_at TEXT DEFAULT CURRENT_TIMESTAMP</p>
<p>  );</p>
<p>  CREATE TABLE activities (</p>
<p>    id INTEGER PRIMARY KEY AUTOINCREMENT,</p>
<p>    lead_id INTEGER,</p>
<p>    type TEXT,</p>
<p>    description TEXT,</p>
<p>    created_at TEXT DEFAULT CURRENT_TIMESTAMP,</p>
<p>    FOREIGN KEY (lead_id) REFERENCES leads(id)</p>
<p>  );</p>
<p>No joins needed for the main views. The leads table drives 90% of the app. Activities are a simple append-only log.</p>
<p><strong>The</strong> <strong>Hardest</strong> <strong>Part:</strong> <strong>Follow-Up</strong> <strong>Reminders</strong></p>
<p>Real estate agents live and die by follow-ups. Miss one call, lose a deal worth lakhs.</p>
<p>The challenge: schedule notifications that persist across app restarts, phone reboots, and timezone changes — all without a server.</p>
<p>  Future scheduleFollowUp(Lead lead) async {</p>
<p>    if (lead.followUpDate == null) return;</p>
<p>    await flutterLocalNotificationsPlugin.zonedSchedule(</p>
<p>      <a href="http://lead.id">lead.id</a>!,</p>
<p>      'Follow-up Reminder',</p>
<p>      'Call \({<a href="http://lead.name">lead.name</a>} - \){<a href="http://lead.phone">lead.phone</a>}',</p>
<p>      lead.followUpDate!,</p>
<p>      const NotificationDetails(</p>
<p>        android: AndroidNotificationDetails(</p>
<p>          'follow_ups',</p>
<p>          'Follow-up Reminders',</p>
<p>          importance: Importance.high,</p>
<p>          priority: Priority.high,</p>
<p>        ),</p>
<p>      ),</p>
<p>      androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,</p>
<p>      uiLocalNotificationDateInterpretation:</p>
<p>          UILocalNotificationDateInterpretation.absoluteTime,</p>
<p>    );</p>
<p>  }</p>
<p>Key decisions:</p>
<p>  - <strong>Exact</strong> <strong>alarms</strong> (exactAllowWhileIdle) — notifications fire even in Doze mode</p>
<p>  - <strong>Lead</strong> <strong>ID</strong> <strong>as</strong> <strong>notification</strong> <strong>ID</strong> — easy to cancel/update when the follow-up date changes</p>
<p>  - <strong>Phone</strong> <strong>number</strong> <strong>in</strong> <strong>the</strong> <strong>notification</strong> <strong>body</strong> — agents can call directly from the notification</p>
<p><strong>CSV</strong> <strong>Import:</strong> <strong>Harder</strong> <strong>Than</strong> <strong>You</strong> <strong>Think</strong></p>
<p>Importing leads from CSV sounds simple. It's not. Real-world CSV files from agents are messy:</p>
<p>- Inconsistent column names ("Phone", "phone", "Mobile", "Contact No.")</p>
<p> - Mixed date formats</p>
<p> - Empty rows, merged cells, special characters</p>
<p>  - Files saved from Excel with BOM markers The solution: a flexible parser that maps columns by position with user confirmation, not by header name matching.</p>
<p><strong>What</strong> <strong>I</strong> <strong>Didn't</strong> <strong>Build</strong> <strong>(On</strong> <strong>Purpose)</strong></p>
<p>- <strong>User</strong> <strong>authentication</strong> — No accounts. No login. Open the app and use it.</p>
<p> - <strong>Cloud</strong> <strong>sync</strong> — Your data stays on your device. Privacy by design.</p>
<p> - <strong>Team</strong> <strong>features</strong> — This is for solo agents, not enterprises.</p>
<p> - <strong>Email</strong> <strong>integration</strong> — Indian real estate agents use WhatsApp and phone calls, not email.</p>
<p> - <strong>Analytics</strong> <strong>dashboard</strong> — Agents don't want charts. They want to know who to call today.</p>
<p>Every feature I removed made the app better.</p>
<p><strong>Performance</strong> <strong>Results</strong></p>
<p>- <strong>App</strong> <strong>size:</strong> 14 MB</p>
<p> - <strong>Cold</strong> <strong>start:</strong> Under 2 seconds</p>
<p> - <strong>Database</strong> <strong>query</strong> <strong>(1000</strong> <strong>leads):</strong> Under 50ms</p>
<p> - <strong>Notification</strong> <strong>scheduling:</strong> Instant</p>
<p>SQLite handles 10,000+ leads without breaking a sweat. No pagination needed for most agents who manage 100-500 leads.</p>
<p><strong>Lessons</strong> <strong>Learned</strong></p>
<p><strong>1.</strong> <strong>Offline-first</strong> <strong>simplifies</strong> <strong>everything</strong></p>
<p>No loading states. No retry logic. No "connection lost" toasts. No sync conflicts. The code is dramatically simpler.</p>
<p><strong>2.</strong> <strong>SQLite</strong> <strong>is</strong> <strong>underrated</strong></p>
<p>Everyone reaches for Firebase or Supabase. For single-user mobile apps, SQLite is faster, simpler, and more reliable. Zero configuration, zero cost, zero dependencies.</p>
<p><strong>3.</strong> <strong>Build</strong> <strong>for</strong> <strong>the</strong> <strong>actual</strong> <strong>user,</strong> <strong>not</strong> <strong>the</strong> <strong>imagined</strong> <strong>user</strong></p>
<p>I initially built features like pipeline analytics and PDF reports. Agents didn't use them. They wanted: add lead, set reminder, see who to call today. Three screens, not thirty.</p>
<p><strong>4.</strong> <strong>Free</strong> <strong>is</strong> <strong>a</strong> <strong>moat</strong></p>
<p>Competing with Zoho on features is impossible. Competing on price (free) and simplicity (offline, no sign-up) created a niche they'll never care about.</p>
<p><strong>Try</strong> <strong>It</strong></p>
<p>Boring CRM is free and available on the Google Play Store.</p>
<p>  - <strong>Website:</strong> <a href="https://boringcrm.in">https://boringcrm.in</a></p>
<p>  - <strong>Download:</strong> <a href="https://play.google.com/store/apps/details?id=com.boringcrm.app">https://play.google.com/store/apps/details?id=com.boringcrm.app</a></p>
<p> If you're building mobile apps for emerging markets, consider offline-first. Your users will thank you.</p>
]]></content:encoded></item></channel></rss>