Want to use the official Flutter gallery? You need to switch to the project directory of the gallery app first:
flutter packages get
If you have a real device connected (and the emulator closed) you can also use flutter run release.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.