Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Taking Flutter to the Web

You're reading from   Taking Flutter to the Web Learn how to build cross-platform UIs for web and mobile platforms using Flutter for Web

Arrow left icon
Product type Paperback
Published in Oct 2022
Publisher Packt
ISBN-13 9781801817714
Length 206 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Damodar Lohani Damodar Lohani
Author Profile Icon Damodar Lohani
Damodar Lohani
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1: Basics of Flutter Web
2. Chapter 1: Getting Started with Flutter on the Web FREE CHAPTER 3. Chapter 2: Creating Your First Web App 4. Chapter 3: Building Responsive and Adaptive Designs 5. Part 2: Flutter Web under the Hood
6. Chapter 4: Flutter Web under the Hood 7. Chapter 5: Understanding Routes and Navigation 8. Chapter 6: Architecting and Organizing 9. Part 3: Advanced Concepts
10. Chapter 7: Implementing Persistence 11. Chapter 8: State Management in Flutter 12. Chapter 9: Integrating Appwrite 13. Chapter 10: Firebase Integration 14. Chapter 11: Building and Deploying a Flutter Web Application 15. Index 16. Other Books You May Enjoy

An introduction to Riverpod

Riverpod is an excellent state management solution for Dart and Flutter applications. It was written from the ground up by the developer of Provider, taking everything learned from the Provider package to overcome its shortcomings. Unlike Provider, Riverpod can also be used on Dart-only projects without Flutter.

In this section, we will look at how to install Riverpod and use it in our application. We will also better understand the view models that we wrote about in Chapter 6, Architecting and Organizing, as they already use Riverpod.

Install the latest version of Riverpod from pub.dev (at the time of writing, it’s 1.0.3). Follow these steps to install Riverpod:

  1. Add the following under the dependencies of your pubspec.yaml file:
      flutter_Riverpod: ^1.0.3
  2. Then, run the following command:
    flutter pub get

This particular package in the Riverpod family is optimized to be used with Flutter and provides some wrapper widgets...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime