Hacker News new | ask | show | jobs
by never_inline 1228 days ago
> (Center here, Container there)

Usually, it's a sign that you refactor something to a separate StatelessWidget or at least a function.

If you're coming from web dev, you will be used to having all this container, padding, center, column code in CSS. Now you have it in UI. But on the flip side, this has its flexibility. You can usually refactor the styling part out of the actual widget if you want.

For me the big problems with flutter are state management and platform interop. Yet it's nicer than most other options for developing UI.