D.2. What’s the paradigm or mental model difference?
The biggest difference between writing a Flutter app and an iOS one is that Flutter uses composition and reactive-style programming to make handling your UI state simple. You, the developer, don’t have to be concerned with mutating the UI state because it’s handled by the framework internally. This is mostly due to the fact that the UI is described by widgets.
Widgets aren’t UI elements themselves, but rather they’re blueprints for true elements. And you use widgets to describe the current view. As your app’s state changes, and the screen needs to re-render, the framework is just rendering the current widget tree, and it knows how to transition the UI as it changes.
You don’t have to tell ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access