Creating the Table for larger devices

Let's begin by designing the table for larger devices, as follows:

  1. Create a new file called ui.dart, and add two imports at the top of the file—one for the material.dart library and another for our bookshelper.dart file, as follows:
import 'package:flutter/material.dart'; import 'data/bookshelper.dart'; 
  1. Next, create a stateless widget called BooksTable. When called, this class will take the list of books and a Boolean value specifying whether the caller is the home page or the favorites page (which we still have to create). It will also create an instance of the BooksHelper class. Add the following code to create the BooksTable stateless widget:
class BooksTable extends StatelessWidget {  final List<dynamic> ...

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.