pikapika/lib/screens/FavouritePaperScreen.dart

36 lines
922 B
Dart

import 'package:flutter/material.dart';
import 'package:pikapika/basic/Method.dart';
import '../basic/Entities.dart';
import 'components/ComicPager.dart';
import 'components/RightClickPop.dart';
// 收藏的漫画
class FavouritePaperScreen extends StatefulWidget {
const FavouritePaperScreen({Key? key}) : super(key: key);
@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 RightClickPop(buildScreen(context));
}
Widget buildScreen(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('收藏'),
),
body: ComicPager(
fetchPage: _fetch,
),
);
}
}