# Flutter Apprentice

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

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

**Page:** 6

---

## [The starter fooderlich project doesn't run](https://forums.kodeco.com/t/the-starter-fooderlich-project-doesnt-run/135713)

<div class="topic-metadata">

**Author:** [@sundraw](https://forums.kodeco.com/u/sundraw)\
**Replies:** 4\
**Last updated:** [November 5, 2021, 10:08pm UTC](https://forums.kodeco.com/t/the-starter-fooderlich-project-doesnt-run/135713 "2021-11-05T22:08:45Z")

</div>

The problem is with the Cocoapods (it’s a pity Apple isn’t rich enough to provide a package management system of their own). It always ends up with something like this: \[!\] Automatically assigning platform \`iOS\` with ve…

---

## [Chapter 2 - Function returns a Widget vs Stateless Widget](https://forums.kodeco.com/t/chapter-2-function-returns-a-widget-vs-stateless-widget/155709)

<div class="topic-metadata">

**Author:** [@lanzoninicola](https://forums.kodeco.com/u/lanzoninicola)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 5:01am UTC](https://forums.kodeco.com/t/chapter-2-function-returns-a-widget-vs-stateless-widget/155709 "2021-11-03T05:01:51Z")

</div>

Is there a reason for building a function to return the Recipe Card (buildRecipeCard) instead of creating a stateless Widget to render the card? I’m trying to first read the chapter, build it myself, and compare my code…

---

## [8.6 Converting a URL string to an AppLink ... decode vs encode](https://forums.kodeco.com/t/8-6-converting-a-url-string-to-an-applink-decode-vs-encode/155743)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 1:46am UTC](https://forums.kodeco.com/t/8-6-converting-a-url-string-to-an-applink-decode-vs-encode/155743 "2021-11-03T01:46:06Z")

</div>

In 8.6 Converting a URL string to an AppLink I’m confused about encoding and decoding … The text says First, you need to decode the URL. URLs often include special characters in their paths, so you need to percent-enco…

---

## [8.6: AppLink class vs FooderlichPages class](https://forums.kodeco.com/t/8-6-applink-class-vs-fooderlichpages-class/155720)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 1:38am UTC](https://forums.kodeco.com/t/8-6-applink-class-vs-fooderlichpages-class/155720 "2021-11-03T01:38:09Z")

</div>

In Section 8.6, we’ve added the AppLink class. It looks like this will eventually make the FooderlichPages class obsolete. Am I correct or do we need to keep both forever?

---

## [Need exact steps to download the book's sample code](https://forums.kodeco.com/t/need-exact-steps-to-download-the-books-sample-code/155626)

<div class="topic-metadata">

**Author:** [@gncov101](https://forums.kodeco.com/u/gncov101)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 5:25pm UTC](https://forums.kodeco.com/t/need-exact-steps-to-download-the-books-sample-code/155626 "2021-11-02T17:25:53Z")

</div>

Hi, When I go to the link for the source code to download it, I see a bunch of file folders and no download button. If this is a “git clone” thing, I am a newbie and need a bit more of a kickstart here to get going. L…

---

## [Author card giving me errors see screen shot](https://forums.kodeco.com/t/author-card-giving-me-errors-see-screen-shot/153442)

<div class="topic-metadata">

**Author:** [@lc0815](https://forums.kodeco.com/u/lc0815)\
**Replies:** 3\
**Last updated:** [October 30, 2021, 1:58am UTC](https://forums.kodeco.com/t/author-card-giving-me-errors-see-screen-shot/153442 "2021-10-30T01:58:54Z")

</div>

the author card favorite button comes up with error that I do not understand can you help LC

---

## [What is the difference between diactivate() and dispose()?](https://forums.kodeco.com/t/what-is-the-difference-between-diactivate-and-dispose/155282)

<div class="topic-metadata">

**Author:** [@belalgamal](https://forums.kodeco.com/u/belalgamal)\
**Replies:** 2\
**Last updated:** [October 31, 2021, 7:20am UTC](https://forums.kodeco.com/t/what-is-the-difference-between-diactivate-and-dispose/155282 "2021-10-31T07:20:18Z")

</div>

pleas, i couldn’t catch the difference between the diactivate and dispose method in flutter and when the widget is deleted permanently and when it deleted temporarily from the widget tree. can any one help,please?

---

## [Chapter 7: Dismissing the Grocery Item screen](https://forums.kodeco.com/t/chapter-7-dismissing-the-grocery-item-screen/155367)

<div class="topic-metadata">

**Author:** [@matan188](https://forums.kodeco.com/u/matan188)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 6:12am UTC](https://forums.kodeco.com/t/chapter-7-dismissing-the-grocery-item-screen/155367 "2021-10-30T06:12:54Z")

</div>

How does the app\_router know to return to the “To Buy” tabs when the user clicks the back button after executing the following in \_handlePopPage if (route.settings.name == FooderlichPages.groceryItemDetails) { gro…

---

## [Out of curiosity](https://forums.kodeco.com/t/out-of-curiosity/155366)

<div class="topic-metadata">

**Author:** [@lc0815](https://forums.kodeco.com/u/lc0815)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 4:33am UTC](https://forums.kodeco.com/t/out-of-curiosity/155366 "2021-10-30T04:33:44Z")

</div>

hi there, just out of curiosity, how do include the emojis on the input line, like the salt shaker or the chef’s emoji… it’s not explained anywhere… so its frustrating to see something that is not explained anywhere… it…

---

## [Having problems with the checkbox widget](https://forums.kodeco.com/t/having-problems-with-the-checkbox-widget/155357)

<div class="topic-metadata">

**Author:** [@lc0815](https://forums.kodeco.com/u/lc0815)\
**Replies:** 4\
**Last updated:** [October 30, 2021, 4:31am UTC](https://forums.kodeco.com/t/having-problems-with-the-checkbox-widget/155357 "2021-10-30T04:31:51Z")

</div>

hello, i am having problems with the checkbox widget as described in ch06 I can not get the onComplete to work with the code as described and can not figure out why…

---

## [Font Issue on Linux](https://forums.kodeco.com/t/font-issue-on-linux/154967)

<div class="topic-metadata">

**Author:** [@grading-retainer](https://forums.kodeco.com/u/grading-retainer)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 12:37pm UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967 "2021-10-28T12:37:16Z")

</div>

In chapter 2, the font “Palatino” is used. When building the app on a Linux system (PopOS) this font does not seem to be installed. When a font is not found in Flutter it gives an ugly error (nothing related to fonts but…

---

## [Adding Modal Dialogs into the projects](https://forums.kodeco.com/t/adding-modal-dialogs-into-the-projects/154898)

<div class="topic-metadata">

**Author:** [@muratursavas](https://forums.kodeco.com/u/muratursavas)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 6:53am UTC](https://forums.kodeco.com/t/adding-modal-dialogs-into-the-projects/154898 "2021-10-28T06:53:59Z")

</div>

First and foremost, thanks for writing such a good book and sharing with us. It really helps for getting out the tutorial valley. My question is, how can I add modal dialogs to one of the example projects (let’s say nav…

---

## [Interactive widgets : // TODO 4: add a scaffold widget](https://forums.kodeco.com/t/interactive-widgets-todo-4-add-a-scaffold-widget/154996)

<div class="topic-metadata">

**Author:** [@olivaxa](https://forums.kodeco.com/u/olivaxa)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 6:39pm UTC](https://forums.kodeco.com/t/interactive-widgets-todo-4-add-a-scaffold-widget/154996 "2021-10-27T18:39:23Z")

</div>

Hi. I didn’t find this TODO in the training. Maybe you should replace : @override Widget build(BuildContext context) { return const EmptyGroceryScreen(); } with @override Widget build(BuildContext conte…

---

## [Do these lint rules automatically come with new flutter apps?](https://forums.kodeco.com/t/do-these-lint-rules-automatically-come-with-new-flutter-apps/154958)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 12:29am UTC](https://forums.kodeco.com/t/do-these-lint-rules-automatically-come-with-new-flutter-apps/154958 "2021-10-27T00:29:22Z")

</div>

Are the lint rules we’re using standard for all new Flutter apps or would we want to get them from somewhere else? If we get them from somewhere else, how would we incorporate them?

---

## [When do you specify widget.property instead of class.property](https://forums.kodeco.com/t/when-do-you-specify-widget-property-instead-of-class-property/154945)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 8:39pm UTC](https://forums.kodeco.com/t/when-do-you-specify-widget-property-instead-of-class-property/154945 "2021-10-26T20:39:37Z")

</div>

In 6.9, there is this code: final originalItem = widget.originalItem;. Why is it that instead of final originalItem = GroceryItemScreen.originalItem;? Doing it the latter way gives an error Instance member 'originalIte…

---

## [Chapter 6. Interactive Widgets](https://forums.kodeco.com/t/chapter-6-interactive-widgets/154647)

<div class="topic-metadata">

**Author:** [@ericsath](https://forums.kodeco.com/u/ericsath)\
**Replies:** 4\
**Last updated:** [October 26, 2021, 10:46am UTC](https://forums.kodeco.com/t/chapter-6-interactive-widgets/154647 "2021-10-26T10:46:51Z")

</div>

6.9 Creating the screen to add grocery items I’ve got issue in Scaffold AppBar, i have followed the example line of code but what i get is like this It should like this

---

## [ThemData(colorScheme: xxx) vs ThemeData.from(colorScheme: xxx)?](https://forums.kodeco.com/t/themdata-colorscheme-xxx-vs-themedata-from-colorscheme-xxx/153238)

<div class="topic-metadata">

**Author:** [@salmankhilji](https://forums.kodeco.com/u/salmankhilji)\
**Replies:** 2\
**Last updated:** [October 26, 2021, 5:17am UTC](https://forums.kodeco.com/t/themdata-colorscheme-xxx-vs-themedata-from-colorscheme-xxx/153238 "2021-10-26T05:17:01Z")

</div>

In Chapter 2, Hello, Flutter, Section, Styling your app, we theme our app like this: @override Widget build(BuildContext context) { final ThemeData theme = ThemeData(); return MaterialApp( title: 'Recipe Calcula…

---

## [Help with displaying a decimal number](https://forums.kodeco.com/t/help-with-displaying-a-decimal-number/154645)

<div class="topic-metadata">

**Author:** [@carlstep333](https://forums.kodeco.com/u/carlstep333)\
**Replies:** 10\
**Last updated:** [October 25, 2021, 5:17pm UTC](https://forums.kodeco.com/t/help-with-displaying-a-decimal-number/154645 "2021-10-25T17:17:25Z")

</div>

Hi, I’m working through the book and trying to apply what I’ve learnt creating the recipe app to my own ‘playground’ app. I’ve created a basic currency conversion app, the slider adjusts an input amount and the return g…

---

## [Creating custom design system similar to material by reusing the flutter/material as part of a package](https://forums.kodeco.com/t/creating-custom-design-system-similar-to-material-by-reusing-the-flutter-material-as-part-of-a-package/154719)

<div class="topic-metadata">

**Author:** [@msbasanth](https://forums.kodeco.com/u/msbasanth)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 1:11pm UTC](https://forums.kodeco.com/t/creating-custom-design-system-similar-to-material-by-reusing-the-flutter-material-as-part-of-a-package/154719 "2021-10-25T13:11:18Z")

</div>

We are trying get very specific customization possibility than what material design provides by default. One approach of course is to create a design similar to flutter material. But creating entire design system from sc…

---

## [Chapter 6: simple question on usage of 'const' on home.dart](https://forums.kodeco.com/t/chapter-6-simple-question-on-usage-of-const-on-home-dart/154536)

<div class="topic-metadata">

**Author:** [@helvecio](https://forums.kodeco.com/u/helvecio)\
**Replies:** 2\
**Last updated:** [October 24, 2021, 6:22pm UTC](https://forums.kodeco.com/t/chapter-6-simple-question-on-usage-of-const-on-home-dart/154536 "2021-10-24T18:22:18Z")

</div>

Hi, all. Very specific here, but could anyone explain why the ‘const’ is needed for GroceryScreen(), but neither for ExploreScreen() nor for RecipesScreen() on ‘\_HomeState extends’ on home.dart? Thanks, H

---

## [Lost with callbacks in Chapter 6.9](https://forums.kodeco.com/t/lost-with-callbacks-in-chapter-6-9/154496)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 7\
**Last updated:** [October 24, 2021, 5:13pm UTC](https://forums.kodeco.com/t/lost-with-callbacks-in-chapter-6-9/154496 "2021-10-24T17:13:36Z")

</div>

In chapter 6.9, I’m getting lost … probably because of my limited understanding of Dart and no real experience with OO programming … can someone help me determine how to interpret these 2 lines? Also, at what point shou…

---

## [Chapter 6 Bug ( grocery\_list\_screen)](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535)

<div class="topic-metadata">

**Author:** [@lediomalasi](https://forums.kodeco.com/u/lediomalasi)\
**Replies:** 2\
**Last updated:** [October 24, 2021, 5:27am UTC](https://forums.kodeco.com/t/chapter-6-bug-grocery-list-screen/154535 "2021-10-24T05:27:59Z")

</div>

mport ‘package:flutter/material.dart’; import ‘…/components/grocery\_tile.dart’; import ‘…/models/models.dart’; import ‘grocery\_item\_screen.dart’; import ‘…/models/grocery\_item.dart’; class GroceryListScreen extends …

---

## [I lost my ability to create notes for this book](https://forums.kodeco.com/t/i-lost-my-ability-to-create-notes-for-this-book/154501)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 0\
**Last updated:** [October 23, 2021, 3:31pm UTC](https://forums.kodeco.com/t/i-lost-my-ability-to-create-notes-for-this-book/154501 "2021-10-23T15:31:21Z")

</div>

Up until today (Saturday 10/23), I was able to highlight text and create notes in the book app here. But today, highlighting doesn’t bring up the tooltip anymore. I’m running Windows 10 and yes, I rebooted to see if tha…

---

## [Firts time coding in life](https://forums.kodeco.com/t/firts-time-coding-in-life/152774)

<div class="topic-metadata">

**Author:** [@iadanish](https://forums.kodeco.com/u/iadanish)\
**Replies:** 7\
**Last updated:** [October 22, 2021, 10:04am UTC](https://forums.kodeco.com/t/firts-time-coding-in-life/152774 "2021-10-22T10:04:41Z")

</div>

Hi I am new to development life, I haven’t code before this and I am starting learning Flutter to develop apps for my own startups, I have a window system, how I can get started?

---

## [Chapter 3 getting started](https://forums.kodeco.com/t/chapter-3-getting-started/154183)

<div class="topic-metadata">

**Author:** [@ofiroz91](https://forums.kodeco.com/u/ofiroz91)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 3:34pm UTC](https://forums.kodeco.com/t/chapter-3-getting-started/154183 "2021-10-22T15:34:35Z")

</div>

“Start by downloading this chapter’s project from the book materials repo” There seem to be more then one file on the repo that hold “starter” Can someone better explain " Locate the projects folder and open starter . I…

---

## [Chapter 6.6 Do I understand ... Adding a TabManager consumer?](https://forums.kodeco.com/t/chapter-6-6-do-i-understand-adding-a-tabmanager-consumer/154279)

<div class="topic-metadata">

**Author:** [@jefff9511](https://forums.kodeco.com/u/jefff9511)\
**Replies:** 5\
**Last updated:** [October 22, 2021, 1:26pm UTC](https://forums.kodeco.com/t/chapter-6-6-do-i-understand-adding-a-tabmanager-consumer/154279 "2021-10-22T13:26:52Z")

</div>

I want to see if I understand the below code in BottomNavigationBar() … If I do, I’ll be amazed :grinning: … How close am I? Immediately after pressing one of the tabs at the bottom of the screen, the currentIndex pro…

---

## [Set-up advice for Android Studio](https://forums.kodeco.com/t/set-up-advice-for-android-studio/154317)

<div class="topic-metadata">

**Author:** [@carlstep333](https://forums.kodeco.com/u/carlstep333)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 11:58am UTC](https://forums.kodeco.com/t/set-up-advice-for-android-studio/154317 "2021-10-22T11:58:03Z")

</div>

Hi, hoping someone can help. I’m using Android Studio to work through the tutorials. When I type in the code I get this overlay popping up (see image). I’m sure it is helpful but the pop-up is so big that it covers mos…

---

## [What is the difference of Stream and Provider?](https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320)

<div class="topic-metadata">

**Author:** [@minuth](https://forums.kodeco.com/u/minuth)\
**Replies:** 1\
**Last updated:** [October 22, 2021, 6:33am UTC](https://forums.kodeco.com/t/what-is-the-difference-of-stream-and-provider/154320 "2021-10-22T06:33:50Z")

</div>

Since we can use both of them to manage the state of app.

---

## [Chapter 12 - no search results in app](https://forums.kodeco.com/t/chapter-12-no-search-results-in-app/154282)

<div class="topic-metadata">

**Author:** [@viride](https://forums.kodeco.com/u/viride)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 6:23am UTC](https://forums.kodeco.com/t/chapter-12-no-search-results-in-app/154282 "2021-10-22T06:23:56Z")

</div>

Hi, I am running chapter 12 final solution, I added my appId and apiKey, but I got no results in app, and error in socket\_patch.dart (line 238, error: ArgumentError (Invalid argument(s): Invalid internet address api.edam…

---

## [Chap 6: Interactive Widgets - grocery\_tile.dart](https://forums.kodeco.com/t/chap-6-interactive-widgets-grocery-tile-dart/154241)

<div class="topic-metadata">

**Author:** [@arupsarkar](https://forums.kodeco.com/u/arupsarkar)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 1:20am UTC](https://forums.kodeco.com/t/chap-6-interactive-widgets-grocery-tile-dart/154241 "2021-10-22T01:20:06Z")

</div>

I am not getting the small fruits and veggies icon, am I missing anything ?

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

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