Terminology is a bit blurry here, but yes, when I read
Dart packages
General packages written in Dart, for example the path package. Some of these might contain Flutter specific functionality and thus have a dependency on the Flutter framework, restricting their use to Flutter only, for example the fluro package.
Plugin packages
A specialized Dart package that contains an API written in Dart code combined with one or more platform-specific implementations.
Plugin packages can be written for Android (using Kotlin or Java), iOS (using Swift or Objective-C), web, macOS, Windows, or Linux, or any combination thereof.
I think we should amend our sentence like
sqflite is a plugin because it requires platform-specific code
Let’s pretend that it takes 1 minute to create an instance of the model you want (I know that’s ages in the programming world).
If you tie the creation of such an instance to a widget lifecycle, every time the widget is re-painted you have to wait 1 minute.
As opposed to a case in which you create your model instance once, keep it somewhere (not connected to the widget lifecycle) and pass it to the widget when you need.
I think it has to do with the formatting of the command. Try using the command on a single line. Like this
~/Library/Android/sdk/platform-tools/adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d 'fooderlich://raywenderlich.com/home?tab=1'
Just some things I think worth mentioning in 2nd Ed. Chapter 1 Getting Started. You might mention that the user actually name their app or copy the screen shown, currently it states just click Finish. Then it describes the “Pub Get” and the get dependencies messages but those messages do not show up unless they have the main.dart file open. And there is no mention of where that file is or what it is, and it does not open automatically, at least on my system. If this was truly my first Flutter app, I’d be lost already…
Just a minor thing !
In Chapter 15. Saving Data With SQLite , " Creating the Moor repository " part, 2nd block of code;
there are two “// 3” comments and “// 5” would have got missed.
Hi there. First and foremost, thanks for a great book
I have two questions/corrections:
“15. Saving Data With SQLite” suggests using “dependency_overrides”, but Flutter docs does not seem to approve this (I also don’t understand why it’s needed )
I also wonder why it is suggested to use Future(() async { // ... and not just mark insertRecipe as async itself
One thing I’ve noticed in these books is that there are references to finder for mac os so I’d like to humbly request the verbiage be changed for platform neutrality (in your file explorer / file manager)
Also, Consider being more explicit about what’s an example and what you expect the user to type in.