Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kenro235yYou 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. -
Avyy7525y1. 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. -
Xoka12825y@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.
-
yeah, Flutter is weird.
It looks amazing until you actually try to use it and realize that it's kind of utter shit.
Related Rants
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)
rant
dart
wk194
flutter