Must do Updates for projects in edition 2

While reading the second edition, the code always breaks. So I have to run the steps before the app can run on my device.

  1. flutter pub upgrade
  2. android:name="${applicationName}" // change in android manifest
  3. kotlin version = 1.5.31 // change in build.gradle project level
  4. comilesdk = 31 // change in build.gradle app level
  5. gradle version = 4.1.0’ // change in build.gradle project level
  6. gradle wrapper = / // change in gradle properties.

It’s sort of hectic, having to go to the next chapter and have to make the same changes every time.

Will there be another edition?

@maku thanks for posting such a list of detailed steps. Yes, there will be a new edition but it’s gonna take a bit to update all the chapters :slight_smile:


Flutter has released Ver: 2.10.0 too. So when will you release updates for this book? It seems completely outdated now. And we would like to see new modules too. e.g. Web module, Desktop module and etc. Please let us know the future of this book. Thanks!

Considering Google I/O is in a few days we’ll base the update on the presumably upcoming new version of Flutter.

Yes, now Flutter 3. Will you add new modules also? e.g. Web, Desktop

We are currently discussing this.

Yes, this will be a great addition to this book. Thanks!

+1 for updating modules. Also, if I have your eyes. Speaking as someone who is going from knowing NOTHING about flutter programming and learning exclusively through your content, I think it would be awesome if you added a third book in Dart/Flutter Apprentice series that covers how to use things like GPS, The Camera, Local Storage, Bluetooth, etc.

Hey there, I’m a complete novice, what folder are all these files in? I’m having a hard time finding them all

Notice: With the release of Flutter 3.x, certain changes need to be made to the projects. We’re still investigating this but here is what I’ve found so far:
The easiest way to update android and ios is to have Flutter recreate the folders. To do this follow these steps:

  1. Back up the android and ios folders (just in case)
  2. Delete the android/ios folders
  3. From the command line in that directory, type:
    flutter create --platforms=android,ios --org=<your org (like> .
    (notice the dot at the end for the current directory)

All the packages need to be updated (we’ll be doing this for the next edition).
The Moor package has been renamed to Drift. This will require some changes that we will work on.


I did this before I found this guide
And this type of resolving the problem with the Android version helped me to path 4th part of the book
But when I did the same things with the starter 5th part of the book(Scrollable Widgets)
I have an issue with imports, they don’t work and I don’t know what to do with it
Maybe you know how to fix it
I have this issue:
Target of URI doesn’t exist: ‘…/components/components.dart’. (Documentation) Try creating the file referenced by the URI, or Try using a URI for a file that does exist.

Do you have the date when the next edition will be?
Could I know what you mean here <your org (like> .
I didn’t work anywhere what I must paste here
I think that I don’t understand because I don’t a native speaker
When I try to do a custom name like I named the project I have this issue:
The specified file cannot be found.

Make sure that you run flutter pub get afterwards or the packages won’t be found

Not sure yet. Remember that Flutter 3.x just came out a few days ago.

I am sure what I did this

Waiting for a new edition)

I think they updated imports.
In the book, it looks like this: import ‘screens/explore_screen.dart’, and this doesn’t work.
And when I refactored it like this import ‘…/…/models/screens/explore_screen.dart’; it’s work
I came to this when I saw an automatically added import with import ‘…/…/api/mock_fooderlich_service.dart’;
Could you help with the update Moor package?
I am learning Scrollable Widgets now

Does this work better than

flutter clean
flutter pub get

or don’t those recreate the android and ios folders?

Those commands will just clean up the existing folders

Check the latest edition of the book. It’s compatible with Flutter 3.3

1 Like