Simple Interface
In this lesson, we discuss fetching and printing API responses on screen in detail.
We'll cover the following...
We’ll learn to print movie data fetched from the TMDB API on the app’s main screen as is.
Building an interface
Let’s start building the interface to render data returned from API.
App’s entry point
MoviesApp is the entry point for runApp(). It’s a StatelessWidget.
void main() => runApp(MoviesApp());
The MoviesApp widget
The MoviesApp is a MaterialApp. We’ll use a separate widget to build the listing part of the app.
Let’s name this widget as MovieListing. The MovieListing widget needs to be a StatefulWidget because we need to update listings based on the data received from the API/server.
We’ll use this widget as the ...
Ask