31 points · by jaxondu · 8y ago · 20 comments
No XML or descriptive interface mumbo jumbo. You write your interface purely programmatically and it's easy to read afterwards. It also looks very good and supports most of Material Design's components. Great built-in library. Dart has some very neat features. I especially love the handling of asynchronies operations. Either use promises or the async and await syntax.
Personally, I disagree. For more complex UI, having XML and designer is way better option than writing UI programmatically.
You are going to need to do A/B testing of UI, code review, testing, accessibility/localization, and a crap ton of composability. All these are a pain when you have XML.
Flutter is a lightweight declarative UI on top of Skia with hooks into the relevant native events. That means it should generally be easier to get good performance than with React Native (not to mention replacing Android's horrible UI architecture that seems designed to prevent 60fps from happening). Once you start talking about going cross-platform, you have to start talking about compromises. Flutter seems like a very nice compromise when compared to the alternatives (only thing it's missing is the ability to compile to either HTML or Canvas).
I could live with a "small" dls if is constrained to UI rendering and let me do the logic on a more native lang...
Here is a good introductory video: https://www.youtube.com/watch?v=fq4N0hgOWzU
If you have an Android phone you can download Flutter Gallery app from Play Store, go to the menu and flip behavior from Android to iOS. Suddenly you have an app that behaves like an iOS app. Here is a demo like that from the early days: https://youtu.be/Mx-AllVZ1VY?t=11m23s
Now it allows for AOT and JIT on its Compiler Toolchain.