Foundations Course - August 2023 Update
Mainly minor changes:
- Updated course to Flutter 3.13, Dart 3.1
- Updated course to latest package versions
Here are the most important details for each section / lesson. 👇
Section 1
- Added
useMaterial3: falseflag toThemeDatainMaterialApp(the next Flutter release will switch to Material 3 by default but we don't need that) - Updated
showAlertDialogfunction inalert_dialogs.dartto use the newAlertDialog.adaptiveconstructor that was added to Flutter 3.13 - Updated to
flutter_layout_grid: 2.0.4to fix a compile issue with Flutter 3.13
Section 2
We’ll be using GoRouter version 10.1.
As a result, some code changes are needed:
Lesson 02.03:
- Install
go_router: 10.1.0
Lesson 02.10:
- Set
GoRouter.optionURLReflectsImperativeAPIs = trueinsidemain. This is necessary to preserve the old URL navigation behavior on Flutter web (and also prevents an issue with redirects).
Lesson 02.12:
- Updated notes to show the usage of
AlertDialog.adaptivein theshowAlertDialogfunction
Section 5
Lesson 05.21:
- Following the removal of
GoRouterState.locationin GoRouter 10.0, the code has been updated to use thestate.uri.pathproperty instead (see notes)
Section 6
Lesson 06.12:
- Install
mocktail: 1.0.0
Lessons 13,14,15:
- As of
state_notifier: 1.0.0(which is installed withflutter_riverpod: 2.3.7),stateis now accessible in tests without a warning (see the changelog) - So I've replaced
controller.debugStatewithcontroller.statein the tests code
Section 7
Lesson 07.11:
- Added note about setting
GoRouter.optionURLReflectsImperativeAPIs = trueinsidepumpMyApp().
Lesson 07.14:
- Updated notes to mention Patrol for integration testing.