@drizla yes that is expected. If you follow the rest of the instructions it should prompt you to add a new page as you build up the navigator stack.
Firebase Cloud Firestore
- Also has a free plan, but charges for storage used, not for queries made, past the limit.
- Extremely low latency.
- Easy to store simple data using JSON.
- Available for mobile only.
And web app ? So we could use it to create flutter web app ?
Chapter 10: Please what does it mean , when they said we should make sure our installed flutter is set to a path that points to it, because i added my installed flutter to the starter folder, the command isnāt running
I forget the section I first noticed this in, but grep all code examples for āTODO;ā (TODO followed by semicolon.)
While I suspect colon vs. semicolon doesnāt matter much here - I donāt know if parsers are looking for anything but āTODOā in comments - this was an inconsistency in grammar that popped out at me. You used colon most of the time.
Chapter 12. Under āHandling recipe resultsā, comment 3 says the Error
class is for modelling errors such as incorrect credentials.
- Created the
Error
class to extendResult
and hold an exception. This will model errors that occur during an HTTP call, like using the wrong credentials or trying to fetch data without authorization.
However, when the app is run with incorrect credentials, it crashes on line 219 of recipe_list.dart
with the following message:
_CastError (type 'Null' is not a subtype of type 'Success<dynamic>' in type cast)
It looks like the Error
check isnāt working.
That output means that the command is running correctly.
The issue is related to the formatting of pubspec.yaml
Entries should be indented like this flta-materials/pubspec.yaml at editions/2.0 Ā· raywenderlich/flta-materials Ā· GitHub
By placing cursor on red line you will see error type to help you
I think there may be minor errors in the followings
Example on p53
Should the SafeArea wrap the Scaffold instead of just the body of the Scaffold so that the AppBar is also inside the SafeArea.
Example on p88
Text inside the AppBar should be wrapped by Center to match the illustrations in the book.
Example on p173, p186
import āā¦/components/components.dartā should be ācomponents.dartā since they are in the same folder.
Example on p175
No need for top:0, - only need to specify non zero parameters.
Appendix B
A simpler solution is
const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 1),
Section 0: An omission
Under the Before You Begin ā Introduction ā How to read this book
There is no reference to the contents of Section VI and the last paragraph talks of five instead of six chapters in the sentence āHereās a breakdown of these five main sections of the book:ā
The breakdown of chapters also excludes Section VI
Thanks for reporting to this.
Itās been fixed and will be included in the upcoming release.
Chapter 13: This what I get when I search for chicken in the search box, after hot reloading my app.
@jomoka @funkyboy
Chapter 13 ā Finding stored recipes and ingredients
In findRecipeIngredients()
why do we need to find the recipe
first by its id
then use that recipe.id
to find the ingredients, while we have the recipeId
in the first place?
Do I miss something?
Are credentials correctly set?
Yes, you are right. I am also confused as you are. An ingredient has recipe.id so why do we need to find the recipe?
I think the āsā here should be subscription