This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class PaginatedList<T> extends StatefulWidget { | |
/// You should pass a future that paginate itself using [lastItem]. | |
/// And return ``List<T>`` where ``T`` is your database model. | |
/// An example would be something like this: | |
/// ```dart | |
/// return FirebaseFirestore.instance | |
/// .collection('todos') | |
/// .orderBy('createdAt') |