We are now ready to show the data that was retrieved from the web service in the UI:
- Open the main.dart file, delete the default code of the app, and create a basic empty app like this:
import 'package:flutter/material.dart';
void main() => runApp(MyMovies());
class MyMovies extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'My Movies',
theme: ThemeData(
primarySwatch: Colors.deepOrange,
),
home: Home(),
);
}
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MovieList();
}
}
- There's nothing new in this code. Just notice that we chose ThemeData, with Colors.deepOrange primarySwatch, and in Home StatelessWidget, we are calling the MovieList class, which we haven&apos...