Book Image

Flutter Projects

By : Simone Alessandria
Book Image

Flutter Projects

By: Simone Alessandria

Overview of this book

Flutter is a modern reactive mobile framework that removes a lot of the complexity found in building native mobile apps for iOS and Android. With Flutter, developers can now build fast and native mobile apps from a single codebase. This book is packed with 11 projects that will help you build your own mobile applications using Flutter. It begins with an introduction to Dart programming and explains how it can be used with the Flutter SDK to customize mobile apps. Each chapter contains instructions on how to build an independent app from scratch, and each project focuses on important Flutter features.From building Flutter Widgets and applying animations to using databases (SQLite and sembast) and Firebase, you'll build on your knowledge through the chapters. As you progress, you’ll learn how to connect to remote services, integrate maps, and even use Flare to create apps and games in Flutter. Gradually, you’ll be able to create apps and games that are ready to be published on the Google Play Store and the App Store. In the concluding chapters, you’ll learn how to use the BLoC pattern and various best practices related to creating enterprise apps with Flutter. By the end of this book, you will have the skills you need to write and deliver fully functional mobile apps using Flutter.
Table of Contents (15 chapters)
12
Assessment

The BLoC pattern

In most of the projects we have built so far, we've dealt with the state using stateful widgets. While this approach is great for prototyping or simple apps, it is not ideal when your app grows.

There are several reasons for this. Arguably, the most important reason is that you would put at least part of the logic of your app in the same class as your layout. You should avoid mixing layout and code, as it's hard to maintain and reuse the same code in different circumstances. It also makes it easier for developers in a group to work on the same code base if you keep the logic and UI clearly separated.

Also, if you have data that changes in your app, and you need to update several widgets on different screens, then you also risk unnecessarily duplicating your code. Maintaining your app may become extremely costly, and keeping the quality of your software...