Let's begin by designing the table for larger devices, as follows:
- 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';
- 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> ...