Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Managing State in Flutter Pragmatically
  • Table Of Contents Toc
Managing State in Flutter Pragmatically

Managing State in Flutter Pragmatically

By : Arshad, AGARWAL
4.9 (10)
close
close
Managing State in Flutter Pragmatically

Managing State in Flutter Pragmatically

4.9 (10)
By: Arshad, AGARWAL

Overview of this book

Flutter is a cross-platform user interface (UI) toolkit that enables developers to create beautiful native applications for mobile, desktop, and the web with a single codebase. State management in Flutter is one of the most crucial and complex topics within Flutter, with a wide array of approaches available that can make it easy to get lost due to information overload. Managing State in Flutter Pragmatically is a definitive guide to starting out with Flutter and learning about state management, helping developers with some experience of state management to choose the most appropriate solutions and techniques to use. The book takes a hands-on approach and begins by covering the basics of Flutter state management before exploring how to build and manipulate a shopping cart app using popular approaches such as BLoC/Cubit, Provider, MobX, and Riverpod. Throughout the book, you'll also learn how to adopt approaches from React such as Redux and all its types. By the end of this Flutter book, you'll have gained a holistic view of all the state management approaches in Flutter, and learned which approach is the best solution for managing state in your app development journey.
Table of Contents (14 chapters)
close
close
1
Section 1:The Basics of State Management
4
Section 2:Types, Techniques, and Approaches
8
Section 3:Code-Level Implementation

Chapter 6: Creating a Shopping Cart Application Using Basic Approaches

The previous chapter ended our journey of exploring and understanding the basics of different state management techniques. The next three chapters will focus on creating working examples of a simple shopping cart application containing a few screens, along with the functionality of adding and removing pre-listed items to and from the cart.

Starting from this chapter, we will see how to create a shopping cart application using setState, InheritedWidget, and InheritedModel.

We will be creating a two-screen application with each of the three aforementioned techniques. The first screen will display available items that can be added to the cart, while the second screen will display items that have been added to the cart. You can add/remove items to/from both screens. Both screens will be displaying the latest and updated cart items.

To be more specific, we will create the following screens for each of the techniques...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Managing State in Flutter Pragmatically
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon