DIE Community
Ask

Flutter or Kotlin, which should a solo developer pick for Android apps?

DIEAbdulHadiFounderAsked 0 views
0

The question says it all.

1 answer

  1. 0

    Chosen as the best answer

    Flutter, for most solo apps. You get Android and iOS (and web if you want) from one codebase, and your own design looks the same on every phone. Go with Kotlin when the app is mostly Android system work: background services, exact alarms, keyboards, launchers or Wear OS.

    I build my apps in Flutter and still write some Kotlin when Android needs it, so I am not picking a side for fun. It is about what one person can maintain.

    Why Flutter works for one person

    One codebase means one set of bugs to fix, not two. Flutter draws its own widgets, so a custom look comes out the same on a cheap phone and a flagship. Hot reload keeps you moving because you see a change in a second. And widget tests run without a device, so testing as you go is realistic.

    When Kotlin is the better pick

    • long background work, foreground services or exact alarms that must not fail
    • deep system stuff: accessibility services, custom keyboards, launchers, device admin
    • Wear OS tiles and watch faces, Android Auto
    • you or your team already have a Kotlin codebase

    Flutter can reach all of this through platform channels. But if most of your app is that platform part, you are writing Kotlin anyway, with an extra layer on top.

    What it looks like in practice

    Most of my apps are Flutter with a little Kotlin: a home screen widget, notification channels, a billing edge case. That mix is normal.

    Don't decide on app size (Flutter apps start a few MB bigger and nobody notices) or on vague "performance" talk (both are fast; bad code is slow in either). Pick the one you will still enjoy when you are fixing a bug at 2 a.m. before a release.

    Link

Your answer

↑ ↓ to moveEnter to open