import 'package:flutter/material.dart'; import 'package:pikapika/basic/Method.dart'; import '../basic/Entities.dart'; import 'components/ComicPager.dart'; // 收藏的漫画 class FavouritePaperScreen extends StatefulWidget { const FavouritePaperScreen({Key? key}) : super(key: key); @override State createState() => _FavouritePaperScreen(); } class _FavouritePaperScreen extends State { Future _fetch(String _currentSort, int _currentPage) { return method.favouriteComics(_currentSort, _currentPage); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('收藏'), ), body: ComicPager( fetchPage: _fetch, ), ); } }