_recipeStream and _ingredientStream are private fields for the streams. These will be captured the first time a stream is requested, which prevents new streams from being created for each call.
8. Deep Links & Web URLs Converting an AppLink to a URL string
The provided implementation of toLocation() doesn’t do logic defined in the explanation section.
I have tried to implement it as the explanation suggest:
switch (location) {
case kLoginPath:
case kOnboardingPath:
case kProfilePath:
return location;
case kHomePath:
var loc = '$kHomePath';
loc += currentTab == null ? '' : '?';
loc += encodeKeyValPair(key: kTabParam, value: currentTab?.toString());
return Uri.encodeFull(loc);
case kItemPath:
var loc = '$kItemPath';
loc += itemId == null ? '' : '?';
loc += encodeKeyValPair(key: kIdParam, value: itemId);
return Uri.encodeFull(loc);
default:
return kHomePath;
}
PS: I have declared location field as non-nullable String to simplify the logic.
in chapter 2, I can not add image. i am always receiving this error below. please help. thanks.
Could not update files on device: FileSystemException: Cannot open file, path = ‘C:\Users\user\Desktop\flutterDevFolder\recipes\assets\15452035777_294cefced5_c.jpg’ (OS Error: The system cannot find the file specified.
, errno = 2)
@jomoka@mkatz Ch6: I was following the book example using VSCode. Section 6.9: The highlighted line in the snapshot below did not hold true for me. The squiggles remained in place and did not disappear. link.
Am facing this error even after adding Splash screen to the app route (p.g 295) => .The Navigator.pages must not be empty to use the Navigator.pages API.
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