pikapika/lib/screens/FavouritePaperScreen.dart

31 lines
779 B
Dart
Raw Normal View History

2021-09-29 23:57:09 +00:00
import 'package:flutter/material.dart';
2021-11-11 03:00:38 +00:00
import 'package:pikapika/basic/Method.dart';
2021-09-29 23:57:09 +00:00
import '../basic/Entities.dart';
import 'components/ComicPager.dart';
// 收藏的漫画
class FavouritePaperScreen extends StatefulWidget {
2022-03-17 03:31:25 +00:00
const FavouritePaperScreen({Key? key}) : super(key: key);
2021-09-29 23:57:09 +00:00
@override
State<StatefulWidget> createState() => _FavouritePaperScreen();
}
class _FavouritePaperScreen extends State<FavouritePaperScreen> {
Future<ComicsPage> _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,
),
);
}
}