4
Xoka
4y

I've been trying Flutter the past 2days. I liked how amazing Flutter framework is but I also hated how UGLY the Dart language is. First of all, I've been doing Java(Android) and JSX(React). So, after coming from these languages, Dart seems awful. Here are the things that I hated the most:
1. JSON parsing: The worst part of Flutter/Dart. No GSON/Jackson equivalent. not even possible to make one as described in the doc
2. Redux for flutter. I tried and I hated it. So, Tried some other state management libs
3. the way static functions are written in a class
4. Widgets hiarachy
5. Ambiguity - "this context is not the context we need, we need that one to make it work. so, pass that even when you don't have it" (if you have used flutter, you will know what I mean)

Comments
  • 1
    You might like BLoC pattern as state management. It is a lot like mobX in react. Sort of pub-sub. And very easy to use and set up.

    The json part sucks, but if you write additional constructors (object.fromJson and object.toJson) it gets easier.
  • 1
    1. There are gson equivalents but those won't work with flutter ,coz it doesn't allow reflections(due to tree shaking, makes app smaller). Unfortunate.
    2,3. Agree.
    4. They could've done better, but this hierarchy makes for pretty nice optimizations.
    5. (Hack) If you want a context, wrap your widget in a builder class. It will climb the tree till it finds the required widget context.
  • 0
    @AvyChanna 5. I know the hack but when you don't put a builder and suddenly you realize, you needed to, "the process of cutting-pasting the codes" that needed to go inside the builder, is really awful.
  • 1
    yeah, Flutter is weird.

    It looks amazing until you actually try to use it and realize that it's kind of utter shit.
Add Comment