Showing the detail screen and passing data through screens

The detail screen of the app will show a bigger poster image and an overview of the movie. All of the required data, except the image, has already been downloaded and parsed from the web service, so we won't need to use the HTTP library for this screen.

The steps required to complete this part are as follows:

  1. Create the second screen, with the widgets that will need to receive the movie data to set the title, the image, and the overview of the movie.
  2. Respond to the tap of the user in the ListView.
  3. Pass the movie data from the first screen to the second screen.

So let's create a new file, called movie_detail.dart, in the lib folder of the app. Here, we'll only need to import the ...

Get Flutter Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.