The intent of this article is to demonstrate the use of Provider in a non-trivial application — a weather app.
The app consists of a single screen, on which the user can enter the name of a city. The weather for the current day is displayed and a 3-day daily forecast. The app appearance also adapts for day-time and night-time weather conditions.
This post is intended for those new to state management in Flutter. The article assumes you are familiar with Stateless and Stateful widgets and can navigate between screens. If not, check out the links below.
State is the data your application needs to display or do something with. Data which may change.
For relatively simple scenarios, where the application consists of a single screen, we could use Flutter’s Stateful widgets and call
setState()to rebuild the widget after we’ve modified some data or state. Remember, Flutter adopts a reactive model, rendering the user interface in response to state changes.
This post is intended for those new to Flutter mobile app development and can create new projects and have a basic understanding of concepts such as Flutter’s Stateful and Stateless widgets.
Material design is an approach to design that has successfully unified the best traits of user experience and good design.
Developed by Google in 2014, it promotes a uniform app experience across different platforms. Google’s own products like Keep, Meet and Maps, as well as popular apps like WhatsApp and DropBox, follow Material Design guidelines. This can result in apps with unified and distinct identities.
We exchange a few niceties before he gets straight to the point of the call — the production line is down. I’m hanging on his every word as my mind races. He mentions the ERP system integration. Did I think of everything? I tested this!! What’s gone wrong? The call finishes and all I have to offer is a meek “Ok, I’ll look at the code”.
Flutter promises cross-platform, natively compiled apps, with slick smooth UIs. Sounds promising. Developed by Google, the framework is gaining in popularity, especially amongst new startups.
Flutter’s major selling point is that it allows developers to create mobile apps for Android and iOS using a single codebase. It’s possible to build a Flutter app targeting Android and build the same project on a Mac for iOS devices without changing a single line of code.
Unlike most other mobile app frameworks Flutter does not use WebView nor OEM widgets. Instead, Flutter uses its own rendering engine to draw widgets.
Windows Desktop Developer