Why Flutter is not your choice for building the best app in the world?

In this post, I will share with you my humble opinion about using Flutter in large, scalable and maintainable projects. There is a lot of articles that are hyping Flutter. Unfortunately, there is not many articles about the possible problems that you can have. Here you can find few words against.

Why I would not recommend Flutter for building the best app in the world? With Flutter we will have to be more careful on every aspect of the development. It is still not mature enough. Of course, the title is a bite, I think that Flutter is an overall a good tool, but for things that it was created. It’s great when time to market is the most important factor, however it is not so great when you need a long term, bulletproof solution. This is also a very community driven solution, and like in all that cases, it doesn’t have one owner who is responsible for the quality.
If we would like to use Flutter as a separate module in a huge app, we would need to maintain Flutter developers and deal with all overheads that Flutter brings – size, memory and startup time.

What is good in Flutter:

  • Build once run everywhere (Android, iOS, soon Web)
  • Performance is close to native
  • You have access to a set of widgets implementing Material Design and iOS-style
  • Low entry threshold
  • Dart is simple language
  • Apps looks very beautiful
  • Static typing language (but can be dynamic typing also!)
  • Hot reload
  • Great when time to market is key factor 
  • Great when you have small team
  • Great for MVP’s
  • Great when your app is only a CRUD (create, read, update, and delete)

What is bad in Flutter:

My Flutter questions:

1. When you lost benefits of common code in Flutter?

You lost most of the benefits when you have platform specific UI or you need deep system level integration. 

2. What possible problems do you see?

Read the Cons sections. 

3. How looks the community cooperation?

The community is growing and very helpful, however you can stick with a dead plugin, and you will need to write everything on your own. Also, some bugs stays for a long time.

4. Do we have a good documentation?

On the one hand, Google provided great documentation.
On the other hand, Google left a lot of things for the community, and you have to choose some of the workarounds that they prepared.
On the third hand, not all important documentation are ready:

5. Do we need to use external dependencies when we are working in Flutter? Do they look mature?

One more time – community driven. Some solutions are mature, some not. Some are available only for the one platform, some of them have limited functionality, some have bugs, some are dead.

6. Is there any known security issues?

Security similar to the native. Most things are handled by third-party plugins, sometimes you have to write native, platform specific code. There is lack of very specific tools like RASP Runtime application self-protection).


7. How big is the entry threshold?

Flutter is created as a solution with the lowest possible entry threshold. It has tutorials how to quick start as an Android, iOS or Web developer. 

8. Are there things we should be particularly aware of? How easy is it to break things?

Yes, a lot of them, and it’s easy to break things down. Flutter is easy to learn, but gives a lot of power in the hands of the developer. With great power, comes great responsibility. You have to be aware about performance issues, watch out for widgets that changes state, watch out for the static typing in the Dart language.


9. What is the tooling support – IDE, CI/CD, automatic code review tools, etc?

Overall, it’s far from perfect.
IDE is not mature, as for Kotlin or Swift, smart completion doesn’t work.
CI/CD is supported, mostly through the fastlane or solutions like bitrise.
Automatic code review tools don’t support it by default (there are plugins, community tools).
The is also no official guidelines about architecture or code structure.


10. How looks testing?

We have good testing tools. It’s close to native, but needs some extra effort to run on multiple modules.

11. What is the effort to integrate this into existing complex app?

It’s good enough when Flutter is a closed feature that doesn’t need to communicate back and forth with the native part. 


12. Can we easily integrate multiple modules/framework that uses Flutter in existing app?

We can, but not easily. It’s still an experimental feature. The start of each separate Flutter view will have startup overhead to start the Flutter engine.

Note: Support for adding multiple instances of Flutter became available as of Flutter 2.0.0. Use at your own risk since stability or performance issues, and API changes are still possible.


13. What is the impact on a build time/app size/startup time?

Flutter uses hot reload during development, so it speed-ups development.
For release build it will have normally compiled. 

App size is bigger than native one. Also, Flutter app uses more memory.
Flutter need some initial time to start up its engine.
Flutter team is working on all above things, however they can’t be as good as in native app, because Flutter needs the own run environment.


Great performance test done some time ago:

14. What is the impact on the existing app architecture?

We would need to design Flutter features as separate ones, so the impact would be low.

15. How looks the open issues? How they are resolved? Are there any issues that are hanging for a longer time?

The community is very engaged, however there are some issues that hang for a long time, even critical ones which crash the app. Sometimes you can hit the wall and can’t solve the problem.

16. How Flutter communicates with existing App?

Flutter uses asynchronous channels to communicate with native part.
You should invoke all native code on the main thread. 


17. How looks the support for the newest Google/Apple changes/guidelines?

It is quite good, however Google have to always catch up after new OS features. Especially for iOS, which is not owned by Google. It doesn’t use any native components, all things are created from scratch. 

18. How Flutter handles animations?

Flutter is created with beautiful design in mind, and it handles animations well. It can have bigger problems with really heavy animations.

Great performance test done some time ago:

Other articles that you should read to be aware of possible problems when you will be working with Flutter.





Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.