# Flutter Apprentice

**URL:** https://forums.kodeco.com/c/books/flutter-apprentice/68.md?page=3

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 4

---

## [Chapter 3, 2nd Edition - Comment](https://forums.kodeco.com/t/chapter-3-2nd-edition-comment/161542)

<div class="topic-metadata">

**Author:** [@naplesdave](https://forums.kodeco.com/u/naplesdave)\
**Replies:** 1\
**Last updated:** [January 7, 2022, 4:19am UTC](https://forums.kodeco.com/t/chapter-3-2nd-edition-comment/161542 "2022-01-07T04:19:29Z")

</div>

I just wanted to say that I really enjoyed Chapter 3. I learned a bunch. I hope some of it sticks in my mind :blush:

---

## [Chapter 2, 2nd, ed question](https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448)

<div class="topic-metadata">

**Author:** [@naplesdave](https://forums.kodeco.com/u/naplesdave)\
**Replies:** 1\
**Last updated:** [January 6, 2022, 10:11pm UTC](https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448 "2022-01-06T22:11:56Z")

</div>

I am following along and in Chapter 2 it instructs me to replace some code in the BUILD section. I did that. But my App Bar Text is left aligned now, not centered as shown in the screen pic? What is wrong here? Here is m…

---

## [Chapter 11 difficulty level was too high](https://forums.kodeco.com/t/chapter-11-difficulty-level-was-too-high/161508)

<div class="topic-metadata">

**Author:** [@hosami](https://forums.kodeco.com/u/hosami)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 1:46pm UTC](https://forums.kodeco.com/t/chapter-11-difficulty-level-was-too-high/161508 "2022-01-05T13:46:11Z")

</div>

This chapter was extremely advanced. In my view, the author is explaining concepts or steps to someone who already knows what is going on or what all the various things are about. As a beginner, I would find this useless…

---

## [2nd Ed, Chapter 3, Basic Widgets, Themes](https://forums.kodeco.com/t/2nd-ed-chapter-3-basic-widgets-themes/161467)

<div class="topic-metadata">

**Author:** [@naplesdave](https://forums.kodeco.com/u/naplesdave)\
**Replies:** 0\
**Last updated:** [January 3, 2022, 3:19am UTC](https://forums.kodeco.com/t/2nd-ed-chapter-3-basic-widgets-themes/161467 "2022-01-03T03:19:36Z")

</div>

I followed all the code to the end of the first part of establishing the theme and my AppBar Title text is left aligned. I added the centerTitle: true. to the AppBar Widget to fix this. see below. home: Scaffold( …

---

## [What is the difference dispose( ) & removelistener( )?](https://forums.kodeco.com/t/what-is-the-difference-dispose-removelistener/161047)

<div class="topic-metadata">

**Author:** [@belalgamal](https://forums.kodeco.com/u/belalgamal)\
**Replies:** 1\
**Last updated:** [January 2, 2022, 2:32pm UTC](https://forums.kodeco.com/t/what-is-the-difference-dispose-removelistener/161047 "2022-01-02T14:32:21Z")

</div>

i couldn’t understand the difference between dispose()and removelistener() and when to use them, any help please? what is the difference when i say controller.dispose(); and controller.removelistener(); ?

---

## [Bug: Chapter 11 possible incorrect directory location](https://forums.kodeco.com/t/bug-chapter-11-possible-incorrect-directory-location/160712)

<div class="topic-metadata">

**Author:** [@plplyons72](https://forums.kodeco.com/u/plplyons72)\
**Replies:** 3\
**Last updated:** [December 23, 2021, 4:41pm UTC](https://forums.kodeco.com/t/bug-chapter-11-possible-incorrect-directory-location/160712 "2021-12-23T16:41:00Z")

</div>

repro: nav to chapter 11 do a find for: Open android/app/main/AndroidManifest.xml and add the following right before the tag expected: location should be android/app\*\*/src/\*\*main/AndroidManifest.xml actual: it reads:…

---

## [Software development principles for Flutter Apprentice](https://forums.kodeco.com/t/software-development-principles-for-flutter-apprentice/157026)

<div class="topic-metadata">

**Author:** [@seydina](https://forums.kodeco.com/u/seydina)\
**Replies:** 6\
**Last updated:** [December 19, 2021, 9:35am UTC](https://forums.kodeco.com/t/software-development-principles-for-flutter-apprentice/157026 "2021-12-19T09:35:10Z")

</div>

Hello everyone. I am new in mobile development and software development in general. I want to build a MVP mobile app for my startup. We are two and I am the main developer. I am learning Dart Apprentice and in parallel F…

---

## [Can i subscribe for this book only](https://forums.kodeco.com/t/can-i-subscribe-for-this-book-only/160584)

<div class="topic-metadata">

**Author:** [@drmustafahafez](https://forums.kodeco.com/u/drmustafahafez)\
**Replies:** 1\
**Last updated:** [December 18, 2021, 8:24pm UTC](https://forums.kodeco.com/t/can-i-subscribe-for-this-book-only/160584 "2021-12-18T20:24:46Z")

</div>

Why there’s no option to subscribe for this book only, long life plan…

---

## [Android Studio & Flutter on Silicon Mac M1](https://forums.kodeco.com/t/android-studio-flutter-on-silicon-mac-m1/160440)

<div class="topic-metadata">

**Author:** [@kvutien](https://forums.kodeco.com/u/kvutien)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 6:21pm UTC](https://forums.kodeco.com/t/android-studio-flutter-on-silicon-mac-m1/160440 "2021-12-16T18:21:09Z")

</div>

I’m learning Flutter. After Lesson 6, I got a new Silicon MacBook Pro. I installed Android Studio and Flutter. I did non-regression tests on the first 6 lessons. From Lesson 3 inclusive, AS failed building for iOS on Xco…

---

## [Chapter 19 iOS simulator issues](https://forums.kodeco.com/t/chapter-19-ios-simulator-issues/160351)

<div class="topic-metadata">

**Author:** [@yek](https://forums.kodeco.com/u/yek)\
**Replies:** 4\
**Last updated:** [December 16, 2021, 1:39pm UTC](https://forums.kodeco.com/t/chapter-19-ios-simulator-issues/160351 "2021-12-16T13:39:19Z")

</div>

Hello, I’m new in Flutter. I have a conflict about iOS simulation (not real device) when i debug the chapter 19 project. I have a cocoapods problem (pod system) which facing with firestore exactly. In this chapter espec…

---

## [8.6: Incoming URL should not be decoded](https://forums.kodeco.com/t/8-6-incoming-url-should-not-be-decoded/160422)

<div class="topic-metadata">

**Author:** [@eltehupkes](https://forums.kodeco.com/u/eltehupkes)\
**Replies:** 0\
**Last updated:** [December 16, 2021, 1:38pm UTC](https://forums.kodeco.com/t/8-6-incoming-url-should-not-be-decoded/160422 "2021-12-16T13:38:58Z")

</div>

I thought the use of Uri.decodeFull at the start of AppLink.fromLocation(String?) looked a bit suspicious, so I did some experimentation on all platforms. The call is indeed unnecessary, and changes the meaning of the UR…

---

## [Why Flutter Apprentice is not for free?](https://forums.kodeco.com/t/why-flutter-apprentice-is-not-for-free/160335)

<div class="topic-metadata">

**Author:** [@fedecarroz](https://forums.kodeco.com/u/fedecarroz)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 7:41pm UTC](https://forums.kodeco.com/t/why-flutter-apprentice-is-not-for-free/160335 "2021-12-15T19:41:42Z")

</div>

Hi everyone, I read this on flutter.dev But when I try to get the book it says that is not for free even if the current date (15/12/2021) is before 06/01/2022. Is this a bug? How can I solve it? Thanks

---

## [What is the difference between list.cast(), list.retype() and as\<something else \>?](https://forums.kodeco.com/t/what-is-the-difference-between-list-cast-list-retype-and-as-something-else/157012)

<div class="topic-metadata">

**Author:** [@belalgamal](https://forums.kodeco.com/u/belalgamal)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 5:31pm UTC](https://forums.kodeco.com/t/what-is-the-difference-between-list-cast-list-retype-and-as-something-else/157012 "2021-12-08T17:31:40Z")

</div>

I couldn’t understand exactly what is the difference between List.cast() and as\<\> and List.retype(). There is and example in chapter 5 Information: json\[‘information’\].cast() as I’m wondering 1- if cast used to castin…

---

## [07 Back button and Navigation issue](https://forums.kodeco.com/t/07-back-button-and-navigation-issue/159365)

<div class="topic-metadata">

**Author:** [@antonio55](https://forums.kodeco.com/u/antonio55)\
**Replies:** 7\
**Last updated:** [December 8, 2021, 5:34am UTC](https://forums.kodeco.com/t/07-back-button-and-navigation-issue/159365 "2021-12-08T05:34:51Z")

</div>

In chapter 7 routes and navigation, when I hit back button I don’t get the login screen, but app exits. I don’t know why all the navigation machinery doesn’t work. I suspect I have wrong environment setting. Thanks fo…

---

## [MenuListTileWidget(param0, key: key),](https://forums.kodeco.com/t/menulisttilewidget-param0-key-key/159381)

<div class="topic-metadata">

**Author:** [@cajirdon](https://forums.kodeco.com/u/cajirdon)\
**Replies:** 1\
**Last updated:** [December 5, 2021, 9:02am UTC](https://forums.kodeco.com/t/menulisttilewidget-param0-key-key/159381 "2021-12-05T09:02:15Z")

</div>

Hii. How I can fix this because actually it is giving me an error?

---

## [Intel-haxm in MacOs Monterey](https://forums.kodeco.com/t/intel-haxm-in-macos-monterey/159353)

<div class="topic-metadata">

**Author:** [@glensbo](https://forums.kodeco.com/u/glensbo)\
**Replies:** 3\
**Last updated:** [December 5, 2021, 6:50am UTC](https://forums.kodeco.com/t/intel-haxm-in-macos-monterey/159353 "2021-12-05T06:50:07Z")

</div>

My installation of Android: Android Studio Arctic Fox | 2020.3.1 Patch 3 Mac mid 2015, Monterey experiences this error with intel-haxm: Preparing “Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.6.5…

---

## [@override as an explicit or an implicit annotation](https://forums.kodeco.com/t/override-as-an-explicit-or-an-implicit-annotation/152557)

<div class="topic-metadata">

**Author:** [@panchoybook](https://forums.kodeco.com/u/panchoybook)\
**Replies:** 6\
**Last updated:** [December 2, 2021, 12:12am UTC](https://forums.kodeco.com/t/override-as-an-explicit-or-an-implicit-annotation/152557 "2021-12-02T00:12:46Z")

</div>

I just started reading your book. Great job. I particularly like your code annotations, with notes such as // 1 in the code keyed to the related description in your text: A widget’s build() method is the entry point …

---

## [Creating a web app (website, not android or iOS app)](https://forums.kodeco.com/t/creating-a-web-app-website-not-android-or-ios-app/158880)

<div class="topic-metadata">

**Author:** [@phi1](https://forums.kodeco.com/u/phi1)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 3:15am UTC](https://forums.kodeco.com/t/creating-a-web-app-website-not-android-or-ios-app/158880 "2021-12-01T03:15:59Z")

</div>

In this flutter apprentice book/course, can I create a website? I know dart and flutter can be used to create mobile apps for sometime and I assume this book covers that. I understand in the last 6 months or so dart/Flu…

---

## [Following chapter 15 and converting the project to use moor is NOT WORKING](https://forums.kodeco.com/t/following-chapter-15-and-converting-the-project-to-use-moor-is-not-working/158960)

<div class="topic-metadata">

**Author:** [@seasonliii](https://forums.kodeco.com/u/seasonliii)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 1:18pm UTC](https://forums.kodeco.com/t/following-chapter-15-and-converting-the-project-to-use-moor-is-not-working/158960 "2021-11-30T13:18:59Z")

</div>

I have tried to use the pubspec in the final project as suggesting in another post on the same issue, but it’s not helpful. What’s wrong??? There’s no proofread process??? I think this book is going to damage the repu…

---

## [Ch13. Even it's a MockService it should be nicer 🕵️‍♀️](https://forums.kodeco.com/t/ch13-even-its-a-mockservice-it-should-be-nicer/158568)

<div class="topic-metadata">

**Author:** [@alilosoft](https://forums.kodeco.com/u/alilosoft)\
**Replies:** 0\
**Last updated:** [November 25, 2021, 2:42pm UTC](https://forums.kodeco.com/t/ch13-even-its-a-mockservice-it-should-be-nicer/158568 "2021-11-25T14:42:36Z")

</div>

In chapter 13 the book introduced a MockService which is great pattern for testing the app without using real API calls, but its implementation contains a lot of annoying duplicated code and it’s logic is unnecessary com…

---

## [Use super.initState() at the start not at the end](https://forums.kodeco.com/t/use-super-initstate-at-the-start-not-at-the-end/158527)

<div class="topic-metadata">

**Author:** [@vadrian](https://forums.kodeco.com/u/vadrian)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 9:03am UTC](https://forums.kodeco.com/t/use-super-initstate-at-the-start-not-at-the-end/158527 "2021-11-25T09:03:11Z")

</div>

Hello, Thank you for sharing your book, I am one of those which got a free copy. In your examples with StatefulWidgets, when you override initState() you call super.initState() at the end of the block which is wrong. I…

---

## [8. Deep Links & Web URLs: Connecting the parser to the app router](https://forums.kodeco.com/t/8-deep-links-web-urls-connecting-the-parser-to-the-app-router/158352)

<div class="topic-metadata">

**Author:** [@kingsparadise](https://forums.kodeco.com/u/kingsparadise)\
**Replies:** 5\
**Last updated:** [November 24, 2021, 9:55pm UTC](https://forums.kodeco.com/t/8-deep-links-web-urls-connecting-the-parser-to-the-app-router/158352 "2021-11-24T21:55:54Z")

</div>

When i first run the app, I saw this warning message \*\*some input files use or override a deprecated api. \*\* note: recompile with -xlint:deprecation for details. then i run a flutter doctor and it shows this though …

---

## [How are streams created ? by controller, by request? and how many times?](https://forums.kodeco.com/t/how-are-streams-created-by-controller-by-request-and-how-many-times/158395)

<div class="topic-metadata">

**Author:** [@ozkayas](https://forums.kodeco.com/u/ozkayas)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 9:25pm UTC](https://forums.kodeco.com/t/how-are-streams-created-by-controller-by-request-and-how-many-times/158395 "2021-11-23T21:25:04Z")

</div>

I am confused about the first statement. These will be captured.... for each call Who is requesting the streams and what does being created each time exactly means? :thinking:

---

## [Chapter 5 Understanding Widgets Missing pubspec documentation](https://forums.kodeco.com/t/chapter-5-understanding-widgets-missing-pubspec-documentation/157387)

<div class="topic-metadata">

**Author:** [@rpramirez87](https://forums.kodeco.com/u/rpramirez87)\
**Replies:** 3\
**Last updated:** [November 22, 2021, 8:25pm UTC](https://forums.kodeco.com/t/chapter-5-understanding-widgets-missing-pubspec-documentation/157387 "2021-11-22T20:25:25Z")

</div>

I’m one of those developers who like to keep my previous projects to start on since I keep my comments on the project based on Ray Wenderlich’s numbered format /1 /2 /3 that explains exactly what each line of code does. …

---

## [07 Routes and Navigation issue](https://forums.kodeco.com/t/07-routes-and-navigation-issue/158236)

<div class="topic-metadata">

**Author:** [@hongfeiyang](https://forums.kodeco.com/u/hongfeiyang)\
**Replies:** 1\
**Last updated:** [November 22, 2021, 2:18pm UTC](https://forums.kodeco.com/t/07-routes-and-navigation-issue/158236 "2021-11-22T14:18:08Z")

</div>

Hi @vincentngo, In chapter 7 routes and navigation, it seems that clicking the ‘cross’ button on profile page to dismiss the profile page does not fire any ‘pop’ event. Below are the code related to this issue: line 29…

---

## [Flutter widgets composability](https://forums.kodeco.com/t/flutter-widgets-composability/158220)

<div class="topic-metadata">

**Author:** [@paristocode](https://forums.kodeco.com/u/paristocode)\
**Replies:** 0\
**Last updated:** [November 22, 2021, 8:48am UTC](https://forums.kodeco.com/t/flutter-widgets-composability/158220 "2021-11-22T08:48:01Z")

</div>

Have you ever come across a situation where you followed Flutter syntax correctly with regard to what widgets are allowed to be composed within other widgets, however, only during runtime errors starts to show up. Are t…

---

## [Chapter 12, API errors are not handled correctly. I guess!](https://forums.kodeco.com/t/chapter-12-api-errors-are-not-handled-correctly-i-guess/158175)

<div class="topic-metadata">

**Author:** [@alilosoft](https://forums.kodeco.com/u/alilosoft)\
**Replies:** 2\
**Last updated:** [November 21, 2021, 10:19pm UTC](https://forums.kodeco.com/t/chapter-12-api-errors-are-not-handled-correctly-i-guess/158175 "2021-11-21T22:19:32Z")

</div>

The current implementation of ModelConverter.decodeJson() in Chapter 12 uses the following trick to catch API errors, assuming that response.isSuccessful is true if (jsonMap\['status'\] != null) { return response.copyWi…

---

## [Chapter 15 Moor has been renamed to Drift](https://forums.kodeco.com/t/chapter-15-moor-has-been-renamed-to-drift/156793)

<div class="topic-metadata">

**Author:** [@cyeh1234](https://forums.kodeco.com/u/cyeh1234)\
**Replies:** 4\
**Last updated:** [November 21, 2021, 9:06pm UTC](https://forums.kodeco.com/t/chapter-15-moor-has-been-renamed-to-drift/156793 "2021-11-21T21:06:46Z")

</div>

Is there a plan to migrate to drift? Got the following error charlesyeh15@Charless-MacBook-Pro starter % flutter pub run build\_runner build --delete-conflicting-outputs \[INFO\] Generating build script… \[INFO\] Generati…

---

## [Flutter, didUpdateWidget()](https://forums.kodeco.com/t/flutter-didupdatewidget/158097)

<div class="topic-metadata">

**Author:** [@paristocode](https://forums.kodeco.com/u/paristocode)\
**Replies:** 1\
**Last updated:** [November 21, 2021, 4:50am UTC](https://forums.kodeco.com/t/flutter-didupdatewidget/158097 "2021-11-21T04:50:42Z")

</div>

Why do we need didUpdateWidget(), when we can simply use setState()? Are there cases when the former is called even when the latter is not called?

---

## [How is \_onTappedItem parameter passed?](https://forums.kodeco.com/t/how-is-ontappeditem-parameter-passed/158087)

<div class="topic-metadata">

**Author:** [@fjam](https://forums.kodeco.com/u/fjam)\
**Replies:** 1\
**Last updated:** [November 21, 2021, 4:49am UTC](https://forums.kodeco.com/t/how-is-ontappeditem-parameter-passed/158087 "2021-11-21T04:49:30Z")

</div>

In section 2 chapter 3 (basic widgets) the \_onTappedItem function has a Parameter that is taking in an int index, but when we call the \_onTappedItem in the bottomNavigationBar we aren’t passing in any parameters to the f…

[Previous page](https://forums.kodeco.com/c/books/flutter-apprentice/68.md?page=2)

[Next page](https://forums.kodeco.com/c/books/flutter-apprentice/68.md?page=4)
