# Errata for Flutter Apprentice 2nd Edition

**URL:** <https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499>\
**Category:** Flutter Apprentice\
**Created:** [October 5, 2021, 11:29pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499 "2021-10-05T23:29:39Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![panchoybook](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/panchoybook/32/81494_2.png) [@panchoybook](https://forums.kodeco.com/u/panchoybook)\
**Post date:** [October 16, 2021, 11:07pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/22 "2021-10-16T23:07:31Z")

</div>

`3.3 Setting a theme`

It’s already included **pubspec.yaml**

Missing “in” for your intended meaning:  
It’s already included in **pubspec.yaml**

---

<div class="post-metadata">

**Author:** ![panchoybook](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/panchoybook/32/81494_2.png) [@panchoybook](https://forums.kodeco.com/u/panchoybook)\
**Post date:** [October 17, 2021, 1:10am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/23 "2021-10-17T01:10:25Z")

</div>

In `3.3 Setting a theme` you treat “declares” and “defines” as synonyms. I highlighted them in bold here:

* * *

This code does the following:

1. **Declares** a `TextTheme` called `lightTextTheme`, which uses the Google font **Open Sans** and has a predefined font size and weight. Most importantly, the color of the text is black.

2. Then it **defines** `darkTextTheme`. In this case, the text is white.

3. Next, it **defines** a static method, `light`, which returns the color tones for a light theme using the `lightTextTheme` you created in step 1.

4. Finally, it **declares** a static method, `dark`, which returns the color tones for a dark theme using the `darkTextTheme` 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”.

---

<div class="post-metadata">

**Author:** ![theolord](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/theolord/32/81494_2.png) [@theolord](https://forums.kodeco.com/u/theolord)\
**Post date:** [October 17, 2021, 3:30am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/24 "2021-10-17T03:30:45Z")

</div>

legit way of explaining with diagram

---

<div class="post-metadata">

**Author:** ![nflnfl](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nflnfl/32/81494_2.png) [@nflnfl](https://forums.kodeco.com/u/nflnfl)\
**Post date:** [October 17, 2021, 6:44pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/25 "2021-10-17T18:44:12Z")

</div>

As already reported in [2020](https://forums.kodeco.com/t/hello-flutter-bug-report-slider-divisions-value/128731), 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.

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 17, 2021, 6:57pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/26 "2021-10-17T18:57:41Z")

</div>

@nflnfl thanks we will log this issue, evaluate, and fix the issue in the next update.

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 17, 2021, 7:28pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/27 "2021-10-17T19:28:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 18, 2021, 4:11am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/28 "2021-10-18T04:11:46Z")

</div>

@iphie_flutter can’t see your image, can you please reupload?

---

<div class="post-metadata">

**Author:** ![fdorado985](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fdorado985/32/110979_2.png) [@fdorado985](https://forums.kodeco.com/u/fdorado985)\
**Post date:** [October 18, 2021, 5:25am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/29 "2021-10-18T05:25:16Z")

</div>

On [7.11 Creating the router](https://www.raywenderlich.com/books/flutter-apprentice/v2.0/chapters/7-routes-navigation#toc-chapter-013-anchor-011), on subsection **Handling pop events** you have…

> Locate `// TOOD: Add _handlePopPage` and replace it with the following:

It should be `TODO` instead of `TOOD`.

Regards!

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 18, 2021, 5:51am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/30 "2021-10-18T05:51:11Z")

</div>

![IMG_20211017_201657_596](https://files.chunter.kodeco.com/original/3X/6/e/6ecfee751b1e2f42bf526e390d83696e8d2cbc1b.jpeg)

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 18, 2021, 5:55am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/31 "2021-10-18T05:55:30Z")

</div>

![IMG_20211017_201734_250](https://files.chunter.kodeco.com/original/3X/2/6/26e4c3375079d7dfc7490c1b445baea2e3cea4c5.jpeg)

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 18, 2021, 9:21am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/32 "2021-10-18T09:21:43Z")

</div>

@iphie_flutter  
Did you add the asset folder in the **pubspec.yaml**?

![Screen Shot 2021-10-18 at 4.21.30 PM](https://files.chunter.kodeco.com/original/3X/6/c/6c870fabdb5e743251545fce2356e3b061bb2b9f.jpeg)

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 19, 2021, 5:05am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/33 "2021-10-19T05:05:24Z")

</div>

Yes I did , I added the assets/ to pubspec.yaml  
 ![IMG_20211018_192212_699](https://files.chunter.kodeco.com/original/3X/3/f/3f8c128a6f38472859e8f157c0239b65353d631e.jpeg)

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 19, 2021, 7:45am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/34 "2021-10-19T07:45:37Z")

</div>

@iphie_flutter did you make sure your assets folders have those images?

You can get them at the root folder of `/02-hello-folder`

Here:

> **[flta-materials/02-hello-flutter at editions/2.0 · raywenderlich/flta-materials](https://github.com/raywenderlich/flta-materials/tree/editions/2.0/02-hello-flutter)**
>
> editions/2.0/02-hello-flutter

If this doesn’t work, I would check the final project to see if you have the same issue. Thanks!

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 19, 2021, 8:56am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/35 "2021-10-19T08:56:57Z")

</div>

Of course yes, the asset folder has the images and I copied the asset folder from the GitHub link you just posted which is part of the book materials.  
 ![IMG_20211019_095429_694](https://files.chunter.kodeco.com/original/3X/5/d/5d754648925fb7cd49fd1591991e159234d17739.jpeg)

---

<div class="post-metadata">

**Author:** ![jomoka](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jomoka/32/109828_2.png) [@jomoka](https://forums.kodeco.com/u/jomoka)\
**Post date:** [October 19, 2021, 2:39pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/36 "2021-10-19T14:39:43Z")

</div>

@iphie_flutter please try running the final project to see if it works. If it doesn’t you can upload your github project and i’ll check it out.

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 21, 2021, 4:42am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/37 "2021-10-21T04:42:39Z")

</div>

Sorry for late response, I have uploaded it on my GitHub , my username:ify1101.  
 ![16347911795367701225860810808666](https://files.chunter.kodeco.com/original/3X/a/d/ad41ba1e22dfff7ecabdd0d0f15b99fbfaeff69b.jpeg)

---

<div class="post-metadata">

**Author:** ![funkyboy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/funkyboy/32/109099_2.png) [@funkyboy](https://forums.kodeco.com/u/funkyboy)\
**Post date:** [October 21, 2021, 9:22pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/38 "2021-10-21T21:22:53Z")

</div>

@iphie_flutter I just tested your project here [GitHub - ify1101/recipes](https://github.com/ify1101/recipes) and it works fine in the emulator. Are you trying to run it on a device?

---

<div class="post-metadata">

**Author:** ![jefff9511](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jefff9511/32/102075_2.png) [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Post date:** [October 22, 2021, 11:25am UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/39 "2021-10-22T11:25:41Z")

</div>

@iphie_flutter … did you run **flutter pub get** in the terminal after adding your assets folder in **pubspec.yaml**? That could explain why it does NOT work for you but does work for @funkyboy.

---

<div class="post-metadata">

**Author:** ![iphie\_flutter](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/iphie_flutter/32/81494_2.png) [@iphie\_flutter](https://forums.kodeco.com/u/iphie_flutter)\
**Post date:** [October 22, 2021, 8:38pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/40 "2021-10-22T20:38:56Z")

</div>

Thanks @jefff9511 i just ran flutter pub get and its working 💃 💃 💃, thanks also @jomoka

---

<div class="post-metadata">

**Author:** ![priyanshuuu](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/priyanshuuu/32/81494_2.png) [@priyanshuuu](https://forums.kodeco.com/u/priyanshuuu)\
**Post date:** [October 24, 2021, 5:04pm UTC](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499/41 "2021-10-24T17:04:33Z")

</div>

Chapter -1  
1.2 **Flutter’s history**  
It runs directly on the GPU using Vulcan on Android  
It should be Vulkan.

[Previous page](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499.md?page=1)

[Next page](https://forums.kodeco.com/t/errata-for-flutter-apprentice-2nd-edition/149499.md?page=3)
