2 ms·
You commented this elsewhere too without elaboration. I'm curious as to what you mean by 'widget hell'. I founded the nested tree of widgets syntax good after
by rkangel 6y ago
You commented this elsewhere too without elaboration. I'm curious as to what you mean by 'widget hell'.
I founded the nested tree of widgets syntax good after getting over the (short) initial learning curve. Some basic good programming practice over shared bits and it was very maintainable even for complex screens.
- cutler 6y agoWhy is this style of programming frowned upon in Javascript yet idiomatic in Flutter?
- BiteCode_dev 6y agoWidgets are declarative, like in HTML, the nesting is additional information. With callback hell, you nest logic, and actually obfusc information about the control flow.
- imtringued 6y agoI'm not sure what you are talking about. Javascript developers also use HTML and the ability to nest HTML elements is "idiomatic" as well.
- rkangel 6y agoThis is a wonderful answer and much better than what I was about to write. Flutter Widgets, like HTML are declarative. They're just hierarchical information. This works in HTML, and it works in Flutter - there's nothing to get confused about. Nested control flow (if statements, loops etc.) obscures the actual behaviour and so good practice is to break it up until it is clear and understandable.