On chapter 7 and 8, the Navigator 2.0 diagram has the block of RouteInformationProvider repeated.
@alexg011 thank you! This is a good catch. We will get this fixed as soon as possible!
The correct diagram should be
RouteInformationProvider → RouteInformationParser
RouteInformationProvider provides the route information, and passes it to the RouteInformationParser to extract user-defined data type, query parameters etc.
errata typo, won’d → won’t within https://www.raywenderlich.com/books/flutter-apprentice/v2.0/chapters/2-hello-flutter
In this specific case you won’d notice any change in the UI.
Typo in State Object Lifecycle diagram:
Hey,
I think I’ve found that you missed a Row() in a Code Snippet.
In chapter 6.12 Finishing GroceryTile → Adding the first row
In this snippet theres no Row(children[]) around everything so the GroceryTile is not shown correctly.
@awl thanks for spotting this!
Note to team. Same issue reported here Errata for Flutter Apprentice 2nd Edition - #14 by awl
Hey again
In chapter 7.10 there is a point which could lead to confusion.
Managing your app state → Initializing the app → Point 7.
" 7. Sets a delayed timer for 2,000 milliseconds before executing the closure. This sets how long the app screen will display after the user starts the app."
I think with app screen is ment app splash screen. Not that crucial but I thought I’d report it neverthless.
PS: I really enjoy reading this book and programming along! I’m pretty new to Flutter and I learned much about it. Props to the authors!
Chapter 4, Examining the widget tree
In chapter 1, getting started, the following sentence is a bit misleading:
Most importantly, Google built the Dart VM into the Chrome browser, allowing web apps written in Dart to run at native speeds.
While it is true that Google built a version of Chrome called “Dartium” that contained the dart vm, the Chrome browser itself never included a dart vm. Dartium was only meant for development and was deprecated with the release of dart 2.
3.3 Setting a theme
It’s already included pubspec.yaml
Missing “in” for your intended meaning:
It’s already included in pubspec.yaml
In 3.3 Setting a theme
you treat “declares” and “defines” as synonyms. I highlighted them in bold here:
This code does the following:
-
Declares a
TextTheme
calledlightTextTheme
, which uses the Google font Open Sans and has a predefined font size and weight. Most importantly, the color of the text is black. -
Then it defines
darkTextTheme
. In this case, the text is white. -
Next, it defines a static method,
light
, which returns the color tones for a light theme using thelightTextTheme
you created in step 1. -
Finally, it declares a static method,
dark
, which returns the color tones for a dark theme using thedarkTextTheme
you created in step 2.
That’s fine for casual conversations, but please consider that these two words have specific and precise meanings in C, and most certainly they are not synonyms of each other in C. A book on any computer language should use these kinds of keywords with great care.
I’m sure you’ll be able to find a useful synonym for your intended use that doesn’t have the keyword baggage that these two have.
I’ll leave that choice as an exercise for the writer
You use these terms throughout the book, so this is quite a challenge.
One elegant possibility would be to use only “define” (as in an axiomatic mathematical system) and to avoid using “declare”.
legit way of explaining with diagram
As already reported in 2020, the divisions property of the Slider widget in Chapter 2.5 should be 9 instead of 10.
The symptom is that the middle tick can’t be selected, because it belongs to 5.5, which is rounded to 6, but when we set the slider’s value to 6, it’s closest to the next tick at 6.4.
Uploading: IMG_20211017_201657_596.jpg…
Please i need help, my images aren’t uploading and my asset folder is in the same path with other folders