For as long as coding has existed computer scientists have sought to abstract as much as possible. With how essential apps are to our day to day lives, a huge focus shifted towards making app development as easy as possible without sacrificing quality. Cross-platform app development solutions developed by the biggest tech companies out there are trying to fill that gap. In this article, we will be highlighting the differences between two up and coming options: Flutter vs Kotlin Multiplatform.
Flutter vs Kotlin Multiplatform: Head to Head Comparison
The table below highlights the quick differences between Flutter vs Kotlin Multiplatform.
|Components Library||Small very new support||Quickly growing, non-inclusive|
|Learning Curve||Easy to pick up, Kotlin syntax is similar to Java and Swift||Dart makes the barrier for entry higher and reactive programming isn’t all intuitive.|
|EcoSystem||Very new, is also supported by Google and growing.||Become mature and quickly growing. Still missing big apps in production.|
|Hot Reload||Not supported||Supported|
|Github Stars||33,500+ stars||102,000+ stars|
|First Release||Aug 2018||May 2017|
What is Flutter?
Flutter is a reactive cross-platform mobile development framework created by Google and uses Google’s Dart language. Flutter was initially unveiled at the 2015 Dart developer summit. Three years later, Google released the first stable release version Flutter 1.0 on December 5, 2018, at the Flutter Live event. It is used to develop applications for Android, iOS, Windows, Mac, Linux, Google Fuchsia, and the web using a single code base. Google’s strong support helped Flutter quickly catch up to other cross-platform options like React Native. At its core Flutter is a reactive framework and comes with a large number of ready-to-use widgets. Flutter’s applications are compiled using arm C/C++ library so that it’s closer to machine language and gives better native performance.
Some of the advantages of cross-platform mobile app development using Flutter include:
- Hot Reload: One of the biggest pros of using Flutter is the ability to get a near-instant reflection of changes. Hot Reload allows developers to make changes to the codebase and not have to restart the application to see the change reflected.
- Cross-platform development from one codebase: With Flutter, writing one codebase can support iOS and Android platforms. The same codebase can also be used for the other platforms supported by Flutter including the web. And with Flutter having its widgets and designs you have the option to create the exact same app on both platforms. Or have them varied if you wish.
- Cut down on debugging time: Having the same exact app for both platforms and the same codebase means that you will only need to debug once instead of separately for each platform.
- Fast fluid UI: Flutter apps boast a fluid and fast UI and this is thanks to the Skia Graphics Library. With the library, the UI is redrawn each time when a view changes. With help from the GPU, this helps Flutter UI deliver a smooth and fast experience.
- Great app design: Flutter has its own custom widgets and doesn’t use native system components. Flutter also has a very user-friendly UI. This distinct yet very attractive look gives Flutter a big advantage over React Native.
- Same app UI, even on older devices: The non-reliance on native components and having cross platforms be the exact same also works for older vs newer devices. Apps will look the same whether on older iOS/Android devices or newer versions.
- Perfect for MVPs: A huge factor when looking for cross-platform development options is how quickly and easily it can build an app. There is a huge demand for building an MVP (Minimum Viable Product) for an app and Flutter is the best option to accomplish this.
- Flutter community and support: Traditionally due to Flutter being a newer option than React Native, community support has always been a disadvantage when compared. But due to its surging popularity Flutter has surpassed React Native in popularity and community support. Flutter currently has 102,000+ stars on Github while React Native has 92,200+ stars. Google has also continued to strongly support Flutter and its development and it is no longer a potential but rather a very stable option.
- Open source and completely free: Flutter is completely free to use, as opposed to other options like using an app builder or no-code solutions for your cross-development needs.
While Flutter is surging in popularity amongst the cross-platform development tools out there at the moment, it is certainly not perfect. Some of the disadvantages of Flutter include:
- Libraries compared to native development: While Google has been strongly supporting Flutter as well as the community it still is relatively new. Libraries have come a long way but there is still some functionality that would otherwise be available or better implemented in native development thanks to the variety of libraries.
- Apps in the wild: While Flutter has been getting exponentially more popular in dev circles. There hasn’t been a huge amount of popular apps adopting it. Not having in the field examples of complex apps running Flutter can be seen as an issue, but that can soon change. Check out our list of the top Flutter apps out there.
- App sizes: Although Flutter has been working on this and they have their own guide to reducing file sizes, Flutter apps tend to be a larger size than native ones.
Check out our essential list of Flutter resources and development tools.
What is Kotlin Multiplatform?
At first glance, comparing Kotlin and Flutter might raise some eyebrows due to Kotlin being traditionally known as a programming language. However, JetBrains recently released Kotlin Multiplatform in 2020 which is an additional feature of the language that helps it expand beyond Android app development. Kotlin Multiplatform lets developers use a single codebase to develop apps for both iOS and Android.
Kotlin Multiplatform pros
- Modular integration: Probably the biggest benefit in favor of Kotlin is that it’s an SDK and not a framework. This means that teams with existing apps can simply add a module or migrate a small part to assess its viability without a huge commitment. This really helps Kotlin address the biggest deterrent when moving to a new codebase.
- Ease to learn: Kotlin as a programming language is very popular already and its syntax is very similar to other popular languages such as Swift and Java. This also helps reduce the barrier for entry and encourages developers to pick up Kotlin as an alternative.
- A single codebase for the business logic: Cross-platform development solutions by definition let you use a single code base for various platforms and Kotlin Multiplatform is no different. The advantage of Kotlin is that it lets you share logic and libraries below the UI layer. This enables developers to directly interact with their native environment (iOS/Android).
- Native UI experience: Kotlin Multiplatform unlike Flutter does not demand developers to follow its own UI. It lets you utilize native UI elements to its fullest as if you are developing natively.
- Better performance: This utilization of native components helps Kotlin developed apps perform as efficiently as they would as natively developed apps. This is a much sought after advantage for various developers looking to make something beyond an MVP.
Kotlin Multiplatform cons
- Still in alpha: Kotlin Multiplatform was introduced in Kotlin 1.2, but the SDK itself is still in alpha. It has surprising adoption in big products(VMware, PlanGrid, CashApp, and Trikot by Mirego), but until a stable release, companies will be hesitant to migrate towards it.
- Community support and libraries: Being a very new alternative, libraries and community support is still very limited and will need catching up. There are a few basic libraries and it is constantly improving and being worked on.
- Not a closed solution: Kotlin Multiplatform still needs mobile teams to be at least familiar with the different tech stacks. Utilizing a lot of native components means that it won’t be sufficient to be familiar with only Kotlin on its own. Which isn’t the case with Flutter where you can do everything purely using Flutter.
- Takes more development resources: When compared with Flutter, Kotlin isn’t the best solution to create an MVP or prototype as fast as possible. Its need for various semi-native components increases the cost of development both in terms of time and resources.
In most cases, Flutter would win easily but that’s only because of how new and fresh Kotlin Multiplatform is. Some developers might be looking for something to invest in for the future and in that case, they should really keep an eye on both. Flutter itself still isn’t commonly seen as the solution for cross-platform development despite its many perks. So in a straight Flutter vs Kotlin Multiplatform for now Flutter would be the winner but that again depends on the team’s needs and how quickly JetBrains can grow the community support.
- Essential Flutter Resources for All Levels
- How to Release Your Flutter App for iOS and Android
- Introducing Flutter Crash Reporting
- Instabug for Flutter Apps
Instabug empowers mobile teams to maintain industry-leading quality apps with comprehensive bug and crash reports and actionable performance monitoring.