Module: State Management

Best practices for managing application state

Dates: Thu, Oct 12 - Fri, Oct 27

Learning Outcomes

You can manage application state

Readings

Create a controller for a custom widget

A tutorial on the controller design pattern and its implementation in Flutter

Write a controller on Flutter

Another tutorial on the controller design pattern and its implementation in Flutter

Introduction to state management

What is state, thinking declaratively, ephemeral vs. app state, simple app state management

State videos

Stateful vs stateless widgets, how state objects work, and state management in a nutshell

Managing (widget) state

How to manage widget state: within the widget, via the parent, or both.

Riverpod 2.0

Official documentation for Riverpod 2.0

Explain Like I'm Five: Riverpod

Riverpod is simply a way of declaring ‘super smart global variables’.

Flutter Riverpod 2.0: The Ultimate Guide

Why use Riverpod, how to install, the types of Providers, and examples.

Flutter Cookbook: Forms

Overview of form creation, styling, validation, and retrieval

Flutter Form Builder

Build a form, validate fields, react to changes, collect final user input

Agile Garden Club mockup, Phase 3

Example of a Phase 3 mockup

Experiential Learning

1. Implement a simple controller

Read about controllers, and then assess your understanding by creating a simple app

2. Implement a simple use of Riverpod

Update your simple controller to use Riverpod

3. Make your Phase 3 App

Update your mockup to use Riverpod for application state