Eslam MohamedSenior Software Engineer Let's talk

Portfolio · AI

On-device AI for Flutter

The brief

Runs Google's Gemma model fully on the phone, so apps get AI features that work offline and keep data private, without slowing the UI.

  • Flutter
  • Kotlin
  • Swift
  • Gemma

Why it was needed

Some apps can't send user data to a cloud AI service, and still want AI features that respond instantly.

  • Phones have limited memory, and AI work easily freezes the interface.

What we delivered

Google's Gemma model running entirely on the phone, on Android and iOS.

  • A native inference layer in Kotlin and Swift, bridged to Dart.
  • Token generation off the main thread, streamed back in batches so the UI stays smooth.
  • Lazy model loading and a controlled session lifecycle to avoid running out of memory on mid-range phones.

The added value

AI features that work offline, with no data leaving the device.

  • A reusable base for privacy-sensitive apps that need on-device assistance.
Next projectBasecamp MCP serverAI toolingRead the case study

Have a project like this in mind?

Tell me what you need and I'll get back to you.