KMP vs. Flutter - Who Will Win The Cross-Platform Battle?

Поділитися
Вставка

КОМЕНТАРІ • 403

  • @saqibshafin
    @saqibshafin 5 місяців тому +60

    9:37 Flutter does not run in DartVM in Production/Release builds, they are AOT compiled in Production builds, meaning, they don't need VMs to run. Meaning, performance is near-native, if not native.
    They use VM in debug/development mode though.

    • @msiprime
      @msiprime 4 місяці тому +1

      U r right

    • @farellalvaro8392
      @farellalvaro8392 3 місяці тому +3

      You're correct! Dart is AOT compile, not like kotlin that's run in JIT. AOT basically turns your code into near native perfomance which is faster and safer from reverse engineering

    • @cliff3650
      @cliff3650 Місяць тому

      @@farellalvaro8392 The JVM on Android used to be Dalvik that only does JIT. Since Android 4.4, ART (Android Runtime) had been introduced to support AOT compilation. KMP compiles to DEX on Android that supports AOT.

  • @mahmoudalkateb2008
    @mahmoudalkateb2008 5 місяців тому +89

    Im working with flutter,
    CMP has a potential tbh, i love the structure of composables comparing to flutter widget its more readable and flexible, can't wait to transition to KMP 🤩

    • @ahmedbathily7013
      @ahmedbathily7013 5 місяців тому +8

      The problem with kmp is you can only share buisness logic but not UI ,in another side with flutter one codebase can be shared in all platforms buisness logic and ui

    • @WarBorg
      @WarBorg 5 місяців тому

      @@ahmedbathily7013 you can share UI in KMP with Compose Multiplatform it's just that it is still in beta for iOS and alpha for Web

    • @gsmtechzambia3985
      @gsmtechzambia3985 5 місяців тому

      ​​​@@ahmedbathily7013you can share ui code using compose multiplatform (CMP), which also uses kotlin

    • @mahmoudalkateb2008
      @mahmoudalkateb2008 5 місяців тому

      @@ahmedbathily7013 no that's not true, you can share UI with CMP, that's why it has potential you have the option to share UI with CMP or only business Logic.

    • @raheim5730
      @raheim5730 5 місяців тому +9

      Ummm...kmp now share ui.

  • @safionweb
    @safionweb 5 місяців тому +253

    React Native crying in the corner.

    • @kiyotaka721
      @kiyotaka721 5 місяців тому +39

      is it though? Currently RN is the most used cross platform app development library

    • @steinbeats
      @steinbeats 5 місяців тому

      😂😂😂 they doing RN dirty

    • @hashemmousavi2451
      @hashemmousavi2451 5 місяців тому

      😂😂😂😂😂😂

    • @aj3413
      @aj3413 5 місяців тому +24

      ​@@kiyotaka721 Honestly rn is popular because React is popular among web devs. As soon as a new framework comes as an alternative, react native will become irrelevant

    • @MrPDTaylor
      @MrPDTaylor 5 місяців тому

      And angular ionic

  • @helmutbierbaumer2648
    @helmutbierbaumer2648 5 місяців тому +49

    Congrats
    Your videos are constantly getting better and better.
    Clearly the number one source for Android on UA-cam!

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +5

      Thank you!!

    • @azmo_
      @azmo_ 5 місяців тому

      Video quality has improved, but not content quality

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +2

      @@azmo_ what can I do to improve that as well? :)

    • @namet952
      @namet952 2 місяці тому

      @@PhilippLackner don't pay attention to it, it's just envy

  • @AzazelezazA
    @AzazelezazA 5 місяців тому +72

    I'm taking the risk and investing in Kotlin and KMP for my career as I'm about to graduate. At worst I think I can transition to native Android. Wish me luck guys.

    • @diegoflassa
      @diegoflassa 5 місяців тому +3

      Good luck!!

    • @danghuukhai2885
      @danghuukhai2885 3 місяці тому +6

      You will also be able to use Kotlin in backend dev.

    • @iMagUdspEllr
      @iMagUdspEllr 3 місяці тому +4

      Google wants to replace its mobile OS with Fuschia and it's programming language with Flutter and Dart.
      But, Google gives up on projects regularly.
      Also, it's pretty simple to transition to another language as long as you can learn C and classes (like in C++ or Python), then you can learn any other language. The hardest task would be to transition to a niche programming language or something like Rust. But, my main point is that it is weird to say that you're going to specialize in Kotlin. You'll be able to use any language. If you want to specialize in mobile, web, embedded, AI, or something like that, that is different. Learning the ins and outs of making mobile apps is the specialization work, not the language.

    • @k4ba
      @k4ba 3 місяці тому +2

      @@iMagUdspEllr I been waiting for Fuschia for half decade lol... now, let's say Fuschia becomes next Google OS, first problem is that people that already uses Android including all the companies that power their devices with it will most-likely refuse to just transition like that, this is a big request to your customers and Google already makes billions out of it, it's a risky if not dumb play. But worst case scenario for Kotlin devs is that Fuschia becomes real... well, no problem, Kotlin MULTI-PLATFORM remember?

    • @iMagUdspEllr
      @iMagUdspEllr 3 місяці тому

      @@k4ba I think they were going to have Android run on top of Fuschia in a virtual machine during the transition. If Fuschia manages to be more efficient than Android, we could see performance break even during the transition period and then significantly increase once Android can be sidelined.

  • @stijndcl
    @stijndcl 5 місяців тому +80

    A big pro for KMP is that if you ever change your mind and want to go native again, you only have to re-write the iOS app cause the Android one is already native. If you do that with Flutter you have to write two new apps from the ground up.

    • @alijawad6596
      @alijawad6596 4 місяці тому +9

      As a beginner application developer. Why would I need to shift my cross platform app to Native app? Besides Client decision.

    • @taiwo_teninlanimi
      @taiwo_teninlanimi 4 місяці тому +3

      @@alijawad6596 thank you. Such a bright question 😂

    • @knflux9840
      @knflux9840 4 місяці тому +6

      @@alijawad6596 In the case of KMP I dont see any real scenarios as to why one would need to go back to native completely but in case of frameworks like Flutter, there can be various issues that can force a rewrite to native like bad performance for example.

    • @chronyan2-er3mk
      @chronyan2-er3mk 3 місяці тому

      @@alijawad6596 Performance. Sometimes, businesses pivot - for example you have an app that provides downloadable wallpapers but transitions into creating home screen widgets. But this is rarely the case.

    • @caresvlbdjz
      @caresvlbdjz Місяць тому

      @@knflux9840 very difficult to find a scenario where performance is bad using Flutter, if you expect that, you write in native since the beginning.

  • @DeceptiveRealities
    @DeceptiveRealities 5 місяців тому +33

    I've been using Jetpack Compose MP in a real iOS product and can't say I've seen any real problems or showstoppers. The only annoying thing is how many parts have to be marked as Experimental at the present time.

  • @tarapogancev
    @tarapogancev 5 місяців тому +11

    Great video! I work with both Jetpack Compose and Flutter, almost 50/50, and have to say I really enjoy Kotlin as a language much more than Dart. UI in Jetpack Compose is also much cleaner, but you eventually get used to Flutter's way as well. For now, I'd still go to Flutter when it comes to cross-platform apps. I feel comfortable with its large community of pub packages, and a wide span of learning resources, but I'm sure that I'll be learning KMP in the near future once it gets more support and a stronger base. This is a great start! 😄

    • @Khubaiblj
      @Khubaiblj 3 місяці тому

      Where can i learn flutter as a beginner cuz i all the UA-cam videos i watched are outdated

    • @tarapogancev
      @tarapogancev 3 місяці тому

      @@Khubaiblj I started learning from a Udemy course (Flutter & Dart - The Complete Guide by Maximilian Schwarzmuller, Dart - Intermediate Course by Bryan Cairns), but there are many amazing UA-cam courses that teach for free! Some of these channels are Flutter Guys, Vandad Nahavandipoor, Reso Coder, to start with. :)

  • @xybnedasdd2930
    @xybnedasdd2930 5 місяців тому +52

    Please, for the love of god: do *NOT* assume performance differences without providing real-world benchmarks. For example, JVM-targeted Kotlin is oftentimes faster than Kotlin Native. Also: Flutter does *NOT* use DartVM for production apps, only for debug apps.

    • @TranMinh-oh5un
      @TranMinh-oh5un 5 місяців тому +4

      So, that means Flutter is better performance?

    • @unknownguywholovespizza
      @unknownguywholovespizza 5 місяців тому +3

      ​@@TranMinh-oh5unno just that it's faster in production than development phase

    • @DeceptiveRealities
      @DeceptiveRealities 5 місяців тому

      Yes - a good video let down by this part. What's on paper doesn't always translate to real world applications.

    • @scottstoll-dn2yx
      @scottstoll-dn2yx 5 місяців тому +5

      Flutter compiles debug builds you're working on as Just In Time which allows you to change state and show the changes in the very next frame so you can iterate quickly as you develop. But that is DEBUG or Development builds ONLY. Production builds are Ahead of Time compiled into binary executables, which are MUCH faster. Please get that right before doing any performance comparison.

    • @vibovitold
      @vibovitold 5 місяців тому +6

      Performance differences don't matter nearly as much as people assume, when it comes to mobile apps.
      Mobile apps don't do much computations etc. (and if they do, there's something wrong with them).
      The overwhelming majority of perceived sluggishness is caused by network traffic and other physical realities which the language or platform has got little to do with.
      A much smaller portion of it is caused by layout rendering, which once again is not inherent to the language, and definitely more often with the app being just poorly implemented.
      The performance of the VM itself is negligible from user's perspective. Maybe for the start-up time, but even then only marginally.

  • @borislavvelchev7275
    @borislavvelchev7275 5 місяців тому +102

    KMP is the next big thing!

    • @gerdsfargen6687
      @gerdsfargen6687 5 місяців тому +2

      I hope so..and that it stays around for a while.

  • @programmieren3197
    @programmieren3197 5 місяців тому +8

    I am a native iOS developer and I love KMP cause Kotlin is on the same level as Swift and i can build a native UI vor IOS

  • @mahiainti678
    @mahiainti678 5 місяців тому +9

    3:53 I would note that Kotlin-to-Wasm is also a compilation target, although it's still in alpha. One great thing about it is that it allows to use the same Compose UI for web apps (while you cannot use Compose with Kotlin-JS)

    • @petereriksson6760
      @petereriksson6760 4 місяці тому

      but beyond in Flutter. Even beyond beta if I am not mistaken...

  • @ayeshdon
    @ayeshdon 5 місяців тому +4

    If you have experience with Flutter or React Native, it will be a great asset in the future. Many existing Flutter and React Native apps will need ongoing maintenance and support. While KMP/CMP might be the next big thing in the mobile development industry, it's important to think positively: Flutter and React Native developers will still be in high demand.

  • @thaddeusojike9250
    @thaddeusojike9250 5 місяців тому +11

    KMP (Kotlin Multiplatform) and CMP (Compose Multiplatform) are two distinct things. This isn't obvious from this video. KMP has nothing to do with UI. And that's why you can't do a fair or proper comparison with Flutter. You can compare Flutter with CMP, although that wouldn't be fair either since CMP isn't yet stable on iOS and Web. Good video all the same ... 👍

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +2

      I said pretty clearly that those are different things 😅

    • @thaddeusojike9250
      @thaddeusojike9250 5 місяців тому

      oh. guess I missed it. Like I said, good video. Please keep up the good work.

  • @c4coding293
    @c4coding293 5 місяців тому +41

    Flutter apps run in VM only on emulators but while running on physical devices no VM is created.

    • @TranMinh-oh5un
      @TranMinh-oh5un 5 місяців тому

      Sure?

    • @xybnedasdd2930
      @xybnedasdd2930 5 місяців тому +2

      @@TranMinh-oh5un Yes.

    • @TranMinh-oh5un
      @TranMinh-oh5un 5 місяців тому +1

      @@xybnedasdd2930 I know about AOT. But are you sure that all dart code is compiled in AOT phase? Seems better than ART?

    • @c4coding293
      @c4coding293 5 місяців тому

      @@TranMinh-oh5un When running Flutter apps on physical devices, no virtual machine (VM) is created. Instead, Flutter uses ahead-of-time (AOT) compilation to compile Dart code to native ARM code, which runs directly on the device's hardware. This allows for high performance and efficiency. In contrast, when running on emulators or simulators during development, Flutter can use a Dart virtual machine (VM) to enable features like hot reload, which speeds up the development process by allowing for quick changes without restarting the app.

    • @meshoraouf8929
      @meshoraouf8929 5 місяців тому +2

      It runs in a VM, in a single activity, and in a single thread
      And the size is bigger like working with an engine like a game engine 😂
      This I believe

  • @leonelp9593
    @leonelp9593 5 місяців тому +3

    Really cool video Philip !
    in my opinion KMP/CMP will take over with time (in the short time, Flutter will definetly not disappear tho) because not only you will have all your androd native devs avaible initially on the market, but also its gonna be very easy to make ur already existing native Android app to be Cross-platform.
    And with CMP it seems that its gonna be the "Quick" way to do an MVP (kinda like Flutter or RN) where after your MVP has been succesful you can just easily make the UI native in each platform if you want.
    i mean i dont see any Cons tbh

  • @ivasuktelesuk100
    @ivasuktelesuk100 5 місяців тому +7

    Hot Reload. I am using it in RN project and its amazing. As initially Android dev I couldnt forget days when I need to wait minutes on really huge projects for each incremental change 😢 Flutter has it as well as I know. Unforunately KMP out of the game here for now seems (

    • @_runtime
      @_runtime 5 місяців тому

      Well, if you use hot reload for UI, then compose previews cover almost everything. And Live Edit will get you covered on Android.

    • @FahadAyaz
      @FahadAyaz 5 місяців тому

      ​@@_runtimeunfortunately it doesn't work on Compose/Kotlin Multiplatform. Stuff is generally much faster nowadays though as a lot of stuff is cached and doesn't need to be recompiled unless the code in particular files is updated

  • @shizanahamadali3748
    @shizanahamadali3748 5 місяців тому +5

    if you explain with some visual edits, its will really help me to understand very easily

  • @dadlord689
    @dadlord689 5 місяців тому +5

    Flutter is occupying less ram as it don't have vm, while in theory should be able to do everything that platform provide. Quite impressive. It is just a 2D game engine with a simplified language, that seems to be very ok for the most task. Bunch of widgets already made. I don't know who needs native crap so hard to awoid Flutter, but it had enough troubles with iOS builds in the past to get a bad reputation. Overall cross platform is for low budget/ low responsibility type of things. And Flutter already has few game engines built ontop of it making it more of an eye candy then anything else. Also you can write server side code with Dart, that mekes knowing it more valuable now.

  • @mateuszd7586
    @mateuszd7586 5 місяців тому +3

    Hi,
    I agree with your point of view, especially with a future of it.
    I'm 11 years experienced mobile developer (7 years Android, 4 Flutter, now back to native Android since 3 months). Flutter is really cool framework which really works, has the best way of state management via for example BLoC solution. Main problem for all cross-platform frameworks are developers from totally different environments. iOS devs, like you said, they are really suspicious for anything outside from Apple. We had few iOS devs in my Flutter team, but all of them or almost all changed project to native iOS. So I don't believe that in a future KMP or Flutter will be so popular to change iOS native developers to any cross-platform solution.
    Another problem of Flutter/ReactNative is that developers can know framework, but do not know mobile platform on which they are developing. So still native devs are needed to solve some OS specific problems.
    KMP, however, requires native developers to write the UI parts of the application, which Flutter does not require.
    Thank you for this video :)

    • @AdeIskandar-lx4rn
      @AdeIskandar-lx4rn 5 місяців тому

      amazing experience, Why did you decide back to native Android?

    • @mateuszd7586
      @mateuszd7586 5 місяців тому +1

      @@AdeIskandar-lx4rn Thank you :) My Flutter project has been moved to client side and no Flutter projects/jobs in Poland for Senior Dev. More offers for native Android.

    • @vibovitold
      @vibovitold 5 місяців тому

      ​@@mateuszd7586 what do those Flutter widgets bring to the table that Jetpack Compose doesn't provide? (as you praise Flutter for "the best way of state management via for example BLoC solution").
      honest question, i've never done much in Flutter.
      the framework itself seems nice, but i wouldn't give up Kotlin for Dart unless i'd have a gun to my head, and even then i'd be like "how do i know it's actually loaded?"

  • @gerdsfargen6687
    @gerdsfargen6687 5 місяців тому +5

    Philipp, do you have a video that shows a roadmap to go from the old system of Java Android dev to full blown Kotlin and adopting clean architecture with KMP and Compose?

  • @vladimirkraus1438
    @vladimirkraus1438 3 місяці тому +5

    I hacked a simple test app on Windows in both KMP (I should better say Compose multiplatform) and Flutter... Flutter had much smaller runtime memory footprint (it is compiled to native binary and does not require JVM, unlike KMP) and felt much much quicker when used. So on desktop KMP is still inferior to Flutter. Though I admit the KMP code was shorter and much more readable. Overall I liked KMP better but the performance is till not there yet, unfortunately. KMP is lagging behind Flutter on desktop by about 2 years of development, IMO.

  • @denisdavidek
    @denisdavidek 5 місяців тому +1

    As a native Android developer, I do think that KMP is the next big thing. I will start checking and learning it soon.

  • @FahadAyaz
    @FahadAyaz 5 місяців тому +3

    For Compose Multiplatform, it's pretty annoying that we don't have a @Preview that we can use in common code yet. At least not in Android Studio. They do in Fleet but it didn't seem to work for me, not sure why

  • @ignaciogarcia1174
    @ignaciogarcia1174 5 місяців тому +10

    I love Kotlin but there are massive libraries I would need to create from the ground up. This means that Flutter has the edge when special libraries are needed.

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +5

      Which libraries are you missing in KMP?

    • @readmeandanswer8142
      @readmeandanswer8142 5 місяців тому

      @@PhilippLackner check flutter gems, there are not even close to this number of solutions on the kmp.

    • @stijndcl
      @stijndcl 5 місяців тому +2

      Google is making big efforts to help KMP right now, they recently made a decent amount of Jetpack libraries multiplatform

    • @FahadAyaz
      @FahadAyaz 5 місяців тому

      ​@@PhilippLacknerI'd say the Firebase stack is currently pretty lacking. There's some unofficial ones but they're not complete and I've had issues there. They don't support Firebase Cloud Messaging at all, which is a pretty important component.
      I'm using Supabase for a personal project though and they support both KMP and Flutter, interestingly :)

  • @xD-saleem
    @xD-saleem 5 місяців тому +1

    Your channel blew up. I remember your first video! Good to see you again bro.

  • @tw5265-p5t
    @tw5265-p5t 3 місяці тому

    The most sensible comparison of KMP and Flutter! Thanks pal..

  • @maxwellkjr
    @maxwellkjr 5 місяців тому +11

    React Native/Electron left the chat

  • @ЕгорДемидов-ы1ж
    @ЕгорДемидов-ы1ж 5 місяців тому +8

    I recently decided to try Kotlin. Having seen how much effort it takes to configure Gradle, I decided to abandon this idea. Until JetBrains implements Amper, I’ll better think about the Flutter + Rust combination (rinf).

    • @nobodydoe
      @nobodydoe Місяць тому +1

      Well, if you think with Flutter you don't have to deals with Gradle (which is a pain in the neck), I have bad news for you

    • @ЕгорДемидов-ы1ж
      @ЕгорДемидов-ы1ж Місяць тому +2

      @@nobodydoe during at time I wrote comment, I'll managed to understand many of the nuances of Gradle-building. Overall, modularization doesn't seem to be that difficult with Koin. In other cases, CMP provides richer interaction between abstractions. Thank to reply, buddy.

  • @lynx0976
    @lynx0976 5 місяців тому

    I think writing libraries for multiple platforms will be very sweet in KMP. It would be nice to use Compose multiplatform for Android and expand the UI to other platforms when those platforms become stable.

  • @ShidoKarasu
    @ShidoKarasu 5 місяців тому

    Thank you so much for this video, Philipp, it was a real good timing, the company that I work for, from time to time, comes back with the "exotic" idea of changing the whole 4 year long native android and iOS apps to flutter because of...I don't know. Looks like they want that for some reason, maybe they think it will reduce costs of anything like that. Basically throw away all the code we've been written, all developers expertises, to change to flutter. Which is a realy weird move, we usually see flutter apps become native, but not the other way around. So I'm having more and more ammunition to talk to them, again. Thank you

    • @vibovitold
      @vibovitold 5 місяців тому

      Rewriting already created native apps to cross-platform is absurd, as it not only misses, but kind of actively reverts the core benefit of going cross-platform in the first place.
      That benefit is that you go faster without having to write the native code : ) But that's already happened in your case, so what the hell, and on the top of that you incur the extra cost of rewriting the stuff, which will inevitably get some of the things wrong, not to mention you've got to support both versions side by side for a while until the Flutter one catches up, which will take longer than your most pessimistic estimation I GUARANTEE.
      My advice: google "Things You Should Never Do, Part I" by Joel Spolsky.
      It's an awesome read.
      It's over 20 years old by now, and as valid today as it was back then, and 20 years before.
      Give it to whoever suggests such things.

  • @frankleth9380
    @frankleth9380 5 місяців тому

    Greetings from Denmark, Philipp, always good to see your videos

  • @michaelappiah-kubi2829
    @michaelappiah-kubi2829 5 місяців тому +4

    Currently Flutter will serve you better than KMP. If KMP picks up however it would be the ideal . Give it a couple of years

  • @morgan2226
    @morgan2226 5 місяців тому +6

    no matter how many times you say it's a personal opinion, flutter cult will just do their thing. Which makes me say communities are a big factor that people should consider when deciding to get into a tech.

  • @sqrlware
    @sqrlware 5 місяців тому +6

    This is really biased, Google only cooperates with Jetbrains because google owns android and would surely like to have control over the native android framework and not because they believe anything about the future being kotlin or anything related. Google adopted flutter for fuschia because they built the os from ground up and would use their own tech for it but android is a whole other thing, it was bought by Google because they wanted to control its native development kit hence cooperation with the developers of the android development tool (jetbrains).

  • @rahmitufanoglu5380
    @rahmitufanoglu5380 5 місяців тому +1

    You talk about the platform channels as if it were really witchcraft. But in reality it's a very good solution.
    KMP is just a layer on top of an existing layer. You still have the JVM dependency as you see when building desktop applications.
    And the community contribution in Flutter is very very high.

  • @Haider5c
    @Haider5c 5 місяців тому +4

    do you hear of impller ? this engine solved so many rendering problems and cmp use skia that had so many problems in the past

    • @Haider5c
      @Haider5c 2 місяці тому

      update i use kmm know and i thinks it better solution than flutter still need to learn swiftUI

  • @tiberiusrubicon9261
    @tiberiusrubicon9261 2 місяці тому

    Skia is a heart of both these frameworks. But on the other hand - Flutter has Impeller - new engine, specifically created for iOS and MacOS.

  • @MichaelMossmanNZ
    @MichaelMossmanNZ 5 місяців тому

    Thank you Philipp for another great vid! ... 2:30 not a lot of syntactical sugar ... I love it =)

  • @powerpcx86
    @powerpcx86 2 місяці тому +1

    0:14 Qt enters the chat :)

  • @futynuty
    @futynuty 4 місяці тому

    Just 1 point to clear: there is a difference between “cross platform” and “multiplatform”. Also, one can call Kotlin code from platform specificity code and wise versa.

  • @TheBerlinFactor
    @TheBerlinFactor 5 місяців тому +3

    Isn't Flutter by definition somewhat higher level? Considering for example the single-window limitation? (Workarounds exist, but it's not straight-forward to use.) KMP feels more low-level in that regard. More potential. But more complex. Flutter feels simpler overall. K(MP) feels more versatile overall.
    What I find astonishing is the simple build setup and management in Flutter vs the crazy Gradle mess of K(MP). Hoping for Amper to bring some alleviation there.
    Now if they would only make Dart a little less annoying.. 😀
    After a few weeks with Flutter/Dart, however, I feel like you can iterate crazy fast compared to KMP. Hot reload/restart has it merits. And afaict KMP (for me mostly targeting Android) is not close, yet, in that regard.
    The "standard library" is, however, quite annoying, coming from Kotlin... ‾\_('')_/‾
    But then there is also Clojure-Dart. Haven't used this yet. But will look at this next. Looks crazy promising. Plus, there seems to be an easy way to use K(MP) in Flutter. Another next thing to look at.
    All things considered, when Flutter is a viable option for a task, it's perfectly fine to pick it, right? If you need the versatility of KMP, then Flutter probably isn't an option anyway...
    Who will win? IDK. Considering the madness of the JS ecosystem... Probably some mad solution will win for cross-platform, too? 🙃

  • @cesarlabastida1392
    @cesarlabastida1392 3 місяці тому

    I have been using compose for android development the past 6 months for my company's app. Kotlin compose it's intuitive, concise and powerful I would even say it's addicting to use

  • @acromos
    @acromos 5 місяців тому +29

    Flutter is to Cross-Platform as Python is to Machine Learning.

    • @AyushVachhani
      @AyushVachhani 5 місяців тому +2

      Flutter is great, but ig even tauri could be a thing, it's releasing mobile support soon.

    • @vladimirkraus1438
      @vladimirkraus1438 3 місяці тому +1

      Your comment does not make any sense.

    • @AyushVachhani
      @AyushVachhani 3 місяці тому

      @@vladimirkraus1438 mine? Or the guy who wrote the comment?

    • @vladimirkraus1438
      @vladimirkraus1438 3 місяці тому +1

      @@AyushVachhani the guy who wrote the comment... Sorry for confusion.

    • @AyushVachhani
      @AyushVachhani 3 місяці тому

      @@vladimirkraus1438 what he's trying to say is that it's an industry gold standard for cross platform, and he isn't wrong ig

  • @henrik908
    @henrik908 5 місяців тому +4

    How to setup a kMM project on arch? ☠️

  • @sqrlware
    @sqrlware 5 місяців тому +4

    Nope , dart VM is for only debugging on emulators on real devices flutter compiles to native arm code. I don't know where you got your data from but yh.

  • @dadlord689
    @dadlord689 5 місяців тому +1

    Yeah, it didn't get less confusing. Looks more like widgets unification sucks with compose and probably will walk the full rode of Flutter issues before will become usable. And KMP is usable already, but doesn't shine enough for a studio to get rid of platform specific developers to adopt it. Shared code could come with a dll + server side, and KMP doesn't makes UI development easier. The only benefit it may have is easing up the Android development madness as it is, but I am guessing.

  • @domephant2425
    @domephant2425 5 місяців тому +14

    I think KMP's future will be very bright, while i'm not so sure about flutter's. I think the target audience of these frameworks differs quite a lot. I think KMP is more suited for native developers trying to write cross-platform apps because they can use their skills and knowledge from the native platform. Flutter and React Native in my opinion are more geared towards the general developers and web developers trying to write apps, therefore they have a higher level of abstraction. I think both approaches are good, but KMP feels like a breeze of fresh air after trying flutter, because from my experience you lose a lot of control using flutter

    • @sqrlware
      @sqrlware 5 місяців тому +3

      That’s is literally the opposite as flutter rather gives all the flexibility you need and flutter compared to KMP/CMP is growing really fast and doesn’t seem to slow down cause the tech is great and does not need the backing of Google

    • @domephant2425
      @domephant2425 5 місяців тому +4

      @@sqrlware you have flexibility with flutter, absolutely. Since it's basically a canvas you can do whatever you want and for a lot of apps that's awesome. But that's also the problem when building apps that try to resemble parts of the native platform. The higher level of abstraction hurts there (iOS rendering was broken for years til Impeller, and don't get me started on Flutter for Web) and some things you simply cannot fix from that high up on the abstraction ladder. Flutter's growth is really strong, but comparing that to KMP doesn't really make sense considering how long Flutter is on the market already. And KMP is also growing rapidly and can partly rely on the Kotlin ecosystem.

    • @andreygritsay762
      @andreygritsay762 2 місяці тому

      @@domephant2425 CMP is not any better on web too as it uses the same Skia engine

    • @domephant2425
      @domephant2425 2 місяці тому

      ​@@andreygritsay762 yes, but you don't have to rely on CMP to render your application. I don't think CMP is gonna be better on Web than Flutter, i think both solutions will be mostly terrible. You can just write your standard web application and use KMP for sharing logic. Flutter simply doesn't give you that option.

  • @h3w45
    @h3w45 3 місяці тому +2

    Flutter is the best

  • @neagutibi
    @neagutibi 5 місяців тому +2

    Why Google supports KMP? Not necessary because they see more future in KMP. It's just not putting all your eggs in a single basket. Probably they don't have the slightest idea if Flutter will win over KMP, so better to be in a position that you'll benefit whatever happens.

  • @_JSN
    @_JSN 5 місяців тому +6

    I have been using Kotlin since 2017, but Dart is a nicer language to code in. I like composables more than widgets though.

    • @programmieren3197
      @programmieren3197 5 місяців тому +2

      Why do you think so. Dart is not very good for functional programming and don’t has data classes

    • @_JSN
      @_JSN 5 місяців тому

      @@programmieren3197 I think Dart is just more intuitive and more concise (not always, but most times). It doesn't give you decision fatigue because it doesn't have as many keywords and "syntactical sugar" ways of doing things.
      It has a very consistent style that makes it easy to jump into someone else's code and there is not as much of a learning curve as with Kotlin. If you know Java/Javascript/C# it's relatively easy to learn Dart compared to learning Kotlin. Things like making http requests and parsing JSON are relatively trivial in Dart. And don't even get me started on how easy it is to use pub vs using gradle.
      As for functional programming, I'm not sure what you mean by it's not very good for functional programming. Could you please explain further?
      As for data classes, you can achieve the same behaviour in Dart by using Equatable.
      Edit: You can also achieve "data classes" in Dart by using Freezed.

    • @_JSN
      @_JSN 5 місяців тому

      @@programmieren3197 Idk what happened to my original reply, but you can use Freezed or Equatable in Dart to achieve the same behaviour as data classes

    • @gorudonu
      @gorudonu 5 місяців тому +1

      I agree, I like dart more than kotlin (and I've been using kotlin since it was in beta). I also think Flutter widgets are better than composables.

    • @_JSN
      @_JSN 5 місяців тому +1

      @@gorudonu The biggest benefit for me with widgets is that they are actual classes that you can extend, unlike composables. I just find it easier to do what I want using composables for the most part. Like making custom dropdown menus for example.

  • @AppsStudio2023
    @AppsStudio2023 5 місяців тому +1

    I'm native android developer and no moving to KMP ..HOPE THAT I'LL ENJOY

    • @mic9969
      @mic9969 5 місяців тому

      no moving to kmp ? why

  • @realth000
    @realth000 5 місяців тому

    I'm using flutter in recent two years, it's great. Now im trying kmp because Kotlin is more powerful than dart3 and i need to learn some android native for flutter side. So kmp is another choice.
    I only do these in side projects, flutter and kmp they are absolutely enjoyable.
    Thanks for your video!

  • @mikegonzalez2012
    @mikegonzalez2012 5 місяців тому

    Right tool for the job. If the project doesn't need fully flushed native capabilities, then Flutter is a great alternative. That being said, you should always try to go Native so that the app can be extensible later.

  • @rithikrithik5249
    @rithikrithik5249 5 місяців тому +1

    there is no tutorial about Pre-registration in google play console make a video step by step plz many small scale developer are not knowing about Pre-registration.

  • @SPENDUSDT
    @SPENDUSDT 5 місяців тому

    is there any posible chance that KMP will support HarmonyOs in the future? the HarmonyOs seem to support Kotlin and few more android language.

  • @TshegoEagles
    @TshegoEagles 5 місяців тому

    Am learning a lot from you Phill, thank you

  • @adnandzindosoda
    @adnandzindosoda 5 місяців тому +18

    I will dive into kmp 2026. Until that they will change everything 100x

    • @akashkumardas6521
      @akashkumardas6521 5 місяців тому +2

      Same thought

    • @user-jchjkitv77896
      @user-jchjkitv77896 5 місяців тому

      For now I'm with flutter but it looks like Google is shifting to kmp I think I'll wait as well

    • @FahadAyaz
      @FahadAyaz 5 місяців тому

      ​@@user-jchjkitv77896I'm don't think that they're planning to abandon Flutter but they're two different approaches to solve the same problem. One isn't necessarily better than the other.
      I think Google adopted KMP and will support Compose Multiplatform because it's much more familiar if you're already developing for Android and many things can be reused, so that lowers the barrier for entry. Personally, I'm likely to stick with Compose Multiplatform.

  • @Exiide89
    @Exiide89 5 місяців тому +3

    Ease of development will win. Which one is easier and comprehensive without having to channel with native code? And also, how quick the platform development team is to implement features. For example , Flutter can't handle Content URI at present on its own. I put in a feature request on content uri and there was some work in progress by flutter team on it. But its been in limbo for the last month or so.

    • @fernando_s97
      @fernando_s97 5 місяців тому

      What's content Uri?

    • @Exiide89
      @Exiide89 5 місяців тому

      ​​​@@fernando_s97Its the standard way of handling file paths now where indirect addresses in the format Content:// are generated by OS instead of direct File:// paths. Idea is to avoid direct access to files and not let the actual address of the file be known.

    • @TheClaudio133
      @TheClaudio133 5 місяців тому +1

      is that a topic related with dynamic links?

    • @dannicron
      @dannicron 5 місяців тому

      If ease of use won, every app would be in PhoneGap

    • @LemuelXu
      @LemuelXu 5 місяців тому

      Define "win"

  • @TimKaragosian
    @TimKaragosian 5 місяців тому +1

    I hate to say this, but it all comes down to financials/business adoption. If companies will not hire/pay developers to use KMP then Flutter will continue. Google's adoption of it and the seamless transition from an Android developer being able to build out to two or more platforms using minimal extra for platform native should help its expansion.

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +1

      If you initialize the state in the carousel that should not be an issue

    • @TimKaragosian
      @TimKaragosian 5 місяців тому

      @@PhilippLackner I'll have to check that out. If you have a video, it looks like I've missed it. Also I wanted to ask about your thoughts on an updated KMP premium video with some of the newer features. I loved the other one on the Translate app and was curious if you were going to wait for a true release before another one or not.
      I'm currently building a game in it!

    • @PhilippLackner
      @PhilippLackner  5 місяців тому +1

      @@TimKaragosian I'll definitely make another course once Compose MP is stable for iOS. I'm just always a bit careful making long courses on non-stable technologies, since it's close to impossible to update a whole course when the main technology its about changes. Every video possibly relies on that, so I want to be sure that the foundation doesn't change in its core.

  • @nomointernal638
    @nomointernal638 4 місяці тому

    I think that the performance comparison is highly theoretical. In practice, I do not expect much performance differences between Flutter and KMP. Nevertheless, I agree that the Kotlin-language is more expressive than Dart, even though this is rather an academic issue with modern Dart versions.

  • @kernelpanic5672
    @kernelpanic5672 9 днів тому

    Flutter is the best.
    My app runs at 120Hz, chats with thousands of messages with media and text with a very complex layout.
    Not a single glitch!

  • @GuseynGulamov
    @GuseynGulamov Місяць тому +1

    There is no kmp in this battle, currently it's only about flutter vs react. If you wanna go cross platform just ignore kmp.

  • @NoName-rp6cx
    @NoName-rp6cx Місяць тому

    I'm a flutter developer, and I'm confused about what the future of technology will be. Native has a strong advantage, for example, Google support (which is quite influential in my opinion), in the CIS there are 5 times more vacancies on kotlin than on flutter (350 versus 1500) and salary forks are 1.2-2 times more, a lot of companies have been making native products for a long time, and this should have to to support

  • @brmIamin
    @brmIamin 5 місяців тому +2

    Aaah shit, here we go again, another framework to choose from.

  • @amtrax02
    @amtrax02 5 місяців тому +1

    But it is still easier to write in flutter when someone doesn't work in Apple environment

  • @rafaelmarcos9733
    @rafaelmarcos9733 18 днів тому

    I've been studying native Android development for a few months, but I saw that there is more demand for flutter, so I don't know if I should stop and study Flutter just o make some money instead of hunting kotlin vacancies.
    Note: money is not my main purpose when studying, I just see there are more people asking for apps in both platforms instead of adnroid specific apps. I'll give KMP a try too, but I didn't see as many opportunities for it as flutter for beginners.

  • @rishusharma1630
    @rishusharma1630 5 місяців тому

    Great video as always sir!! Can you make a tutorial for webview oauth with jetpack compose?? I have been trying to figure that out for quite sometime now 😅

  • @sudhendramondal1226
    @sudhendramondal1226 5 місяців тому +2

    Flutter has the added advantage of building for web, which is stable

    • @programmieren3197
      @programmieren3197 5 місяців тому

      Kemp to and better cause u can use HTMl and CSS if you want

    • @jeanpierresaldivar8388
      @jeanpierresaldivar8388 5 місяців тому

      Only for personal projects, not for business because you can't use SEO in a flutter web 😅😅

    • @sudhendramondal1226
      @sudhendramondal1226 5 місяців тому

      @jeanpierresaldivar8388 True, but you can use a blog, etc, to attract traffic to your page, depending on your needs. If KMP is able to solve this in future iterations, it will be great.

  • @mrgrovesempire
    @mrgrovesempire Місяць тому +1

    Need to check your facts. You were factually incorrect on Flutter performance section.

  • @petereriksson6760
    @petereriksson6760 4 місяці тому +1

    Honestly, last time I looked at KMP, it was too immature (it was a while ago, so my choice came down to Flutter vs React native... I didn't choose React native but isn't the current choice between those three?

  • @yohanespradono5224
    @yohanespradono5224 2 місяці тому +1

    why is it always hard to decide which stack we're going to use.😆

  • @iyadzac
    @iyadzac 5 місяців тому +1

    what about react native? in my company there's more demand of RN than flutter.

  • @AnkitKumar-vd2dd
    @AnkitKumar-vd2dd 5 місяців тому +2

    If now to anything else then also flutter will win ❤against KMP because of its massive community which outnumber all others be it react native or anything else.
    This massive ecosystem of platform specific and number of quality and good open source libraries are not provided with anything other than flutter, keep this is mind also.
    And just consider Rust, Go, Java are all more perforant that JavaScript but it's still more wildey used, for web development than any others.

  • @krtirtho
    @krtirtho 5 місяців тому

    The fact I'll be not treated as a first class user of Kotlin/KMP because I use VSCode, Vim etc and not any Jetbrains IDE is already a huge setback.
    Flutter can be used in any editor, provides the best Developer experience. And HMR? I don't think KMP has that (no preview doesn't count).
    So as a developer I would choose Flutter over KMP just becuase Jetbrains would never let their best framework to be used in some other IDE/code editor. If they stop doing that I think a lot of people outside of native android developement will consider KMP. Jetbrains IDE/Android studio is the first reason why I never went down the native path, personally.

  • @azmo_
    @azmo_ 5 місяців тому +2

    I'm on team KMP. But this video seems so off the cuff to me.

  • @seankang
    @seankang 4 місяці тому +2

    I think you need to work in flutter more to make this video

  • @taiwo_teninlanimi
    @taiwo_teninlanimi 5 місяців тому +1

    It's called "Kotlin Multi-Platform" for a reason and not "Kotlin Cross-Platform".
    Flutter for me is for "Cross-Platform" development. What developers needs are Cross Platform Framework.
    And again, Flutter performs better than KMP. From saying "you don't need Cross-platform development when you can directly make Native Apps" to "Kotlin is Cross-Platform (which is Multi not Cross), Flutter should sit aside" 🤣.
    Kotlin Devs, Flutter Devs aren't arguing with ya'll. Let everyone code in peace.
    And you can also write platform specific code. External packages are written for each platform. That's why there are "platform-specific" packages.

    • @MrlegendOr
      @MrlegendOr 5 місяців тому +2

      This video is biased for real 🙃

    • @taiwo_teninlanimi
      @taiwo_teninlanimi 5 місяців тому +2

      @MrlegendOr Honestly, Some time ago, This channel only posted content based on Native Apps are still important, but now its turned to, KMP is better than flutter. 😂.
      FYI, Flutter is too big to fail.

  • @taiwo_teninlanimi
    @taiwo_teninlanimi 5 місяців тому

    In terms of performance and development time, Flutter to me is the best 🤷‍♂️. Hot reload, Hot restart. Brings speed ✨️.

  • @rexitspersonal8353
    @rexitspersonal8353 5 місяців тому

    Great perspective, understood everything

  • @user--10552
    @user--10552 5 місяців тому +2

    hi
    is there something lightweight and effective for jetpack and kmp, something like vscode...
    Android studio really heavy?

    • @scotter7663
      @scotter7663 3 місяці тому

      Fleet is supposed to be a more lightweight IDE from jetbrains. I've only used it for Java tho not Kotlin or KMP

  • @Aditya.Rawat45
    @Aditya.Rawat45 5 місяців тому

    Hey, I know flutter but I'm thinking to shift to native android development.
    What are the market trends as of now,how do i start?

  • @TheFlexath
    @TheFlexath 5 місяців тому

    Thank you, Philipp

  • @JagdishOnYT
    @JagdishOnYT 5 місяців тому

    Flutter apps have options to make ui similar to iOS using Cupertino components and Cupertino scaffold

  • @cowballlau
    @cowballlau 4 місяці тому

    Or KMP for front-backend logic + flutter for UI development😜

  • @ahmadabdullah5763
    @ahmadabdullah5763 Місяць тому

    Flutter does not run in DartVM in Production/Release builds, they are AOT compiled in Production builds, meaning, they don't need VMs to run. Meaning, performance is near-native, if not native. its way too early to start using kmp

  • @azmo_
    @azmo_ 5 місяців тому +17

    bro show me code not your face

  • @Apenschi
    @Apenschi 5 місяців тому +1

    The "Bridge layer" is only for calling native code in Flutter apps. The Flutter engine e.g. the rendering is written in C++ and runs natively in Android and iOS so theres is no "bridge" used in genral as you implied. In fact Flutter is extremely fast. And as a native developer in Java and Kotlin I can tell you that it is hard to get the same smootheness and fluency of animations and stuff even when programming natively! And what Dart VM ?!?!? I strongly have the impression, that you don't really know what you are talking about. As you said yourself Dart is compiled to nativ machine code, so no VM.

  • @venkateshlingampally7220
    @venkateshlingampally7220 5 місяців тому +5

    why don't you make Flutter development tutorials?

  • @scotter7663
    @scotter7663 3 місяці тому +1

    Recent layoffs at google have hit the flutter project hard, with one flutter developer quoted saying "becoming a serious flutter developer at this point is prob a waste of time"
    And Google even recommende KMP over Flutter when "deep interoperability with the hardware and Android platform" are needed.
    I lean towards using KMP over Flutter for any new projects

  • @mitotv6376
    @mitotv6376 5 місяців тому

    What is KMP??

  • @dera_ng
    @dera_ng 5 місяців тому

    Exactly, I can't trust Flutter because Google can stop funding it at ANYTIME

  • @JeudryPeñaPeña
    @JeudryPeñaPeña 5 місяців тому +4

    current salary is just 600$,I even purchased a 2000$ mac book only for KMP,

  • @realnull
    @realnull Місяць тому

    You missed one more big multiplatform framework here, UNITY support all platforms as KMP except JVM Desktop, you are using C# and platform-specific stuff is very easy to implement you will just add precompiler directives like #if UNITY_IOS and compiler will only generate it when target is IOS.

    • @PhilippLackner
      @PhilippLackner  Місяць тому

      @@realnull nobody is using unity for non-games 😅

    • @realnull
      @realnull Місяць тому

      @@PhilippLackner don't be a 100% sure about that. I saw some unity applications on some embedded devices. I do agree it is a niche and very small amount of non game apps are made with unity, however it is more stable and mature than KMP right now in September 2024

  • @pitzera
    @pitzera 5 місяців тому +1

    Is it possible there are logical errors in you argumentantion about performance? "KMP is better because it shares the same memory space and call stack as the plattform ...." - haven't you sad before that KMP runs in a JVM, also on desktop (optional, but what is the default)? Are JVMs really native? How do JVMs communicate with the host without converting anything?
    Also there is a logic error in google giving up flutter: it would hurt them because multiple apps use flutter. Of course, its not that difficult for google to rewrite an app from scratch, but there would be some pain.
    Jetbrains would not give up kotlin native if there financial situation changes is also hopeful thinking.
    I'm not a than of biased comparison, especially if the 'facts' are not on very very solid bases. There was, like others sad, a bit much personal preference.

  • @senk0n
    @senk0n 5 місяців тому +1

    Comparing without React Native is not complete tbh, as on itself RN feels more native for the end user, and React has some cool improvements with the latest update

    • @MrlegendOr
      @MrlegendOr 5 місяців тому

      React Native is trash🙃

    • @GCoder-sl1sq
      @GCoder-sl1sq Місяць тому

      @@MrlegendOr
      Explain this in technical concepts... or are you simply copying what your favorite technology coach said?

    • @MrlegendOr
      @MrlegendOr Місяць тому

      ​@@GCoder-sl1sq
      1. Advanced and custom I/O
      2. Performance issues
      3. Lack of consistency across platforms
      4. Large footprint
      5. Need Expo router
      6. Using web driven lang to build a mobile's apps is a no go by simple logic
      7. Expo crashes and glitches often
      8. Not fully customisable
      9. Better option for applications: Flutter (1) and Kotlin MultiPlat (2) are much better (no match)
      🙃

    • @MrlegendOr
      @MrlegendOr Місяць тому

      @@GCoder-sl1sq
      1 Advanced and custom I/O
      2 Performance issues
      3 Lack of consistency across platforms
      4 Large footprint
      5 Need Expo router
      6 Using web driven lang to build a mobile's apps is a no go by simple logic
      7 Expo crashes and glitches often
      8 Not fully customisable
      9 Better option for applications: Flutter (1) and Kotlin MultiPlat (2) are much better (no match)
      🙃

  • @DevLife717
    @DevLife717 5 місяців тому

    True, Flutter is much better but ironically RN is the most widely adopted.

  • @kfirossmatityahu4295
    @kfirossmatityahu4295 5 місяців тому +2

    And there is Klutter for the best of 2 worlds

    • @vibovitold
      @vibovitold 5 місяців тому +1

      Klutter, nice one : ) and that's an actual plugin! one of the best names ever

  • @aj3413
    @aj3413 5 місяців тому +2

    13:39 I would disagree as flutter right now has a huge community. If Google someday disowns Flutter for KMP this would make a perception among devs about Google's decision being flaky. Furthermore, it will make devs think twice before before developing in KMP.

  • @fallermatthew
    @fallermatthew Місяць тому

    Honestly, I am currently building a solution in Flutter, and I kind of hate it.
    The actual tooling for doing the cross platform targeting is fine, but the UI framework itself just feels like a really ugly poorly thought out version of Compose or SwiftUI.
    After I finish the Flutter version, I’m very tempted to bite the cost and effort to migrate all of the code to KMP…