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';
|
2022-03-19 04:12:27 +00:00
|
|
|
import 'components/RightClickPop.dart';
|
2021-09-29 23:57:09 +00:00
|
|
|
|
|
|
|
// 收藏的漫画
|
|
|
|
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
|
2022-03-19 04:12:27 +00:00
|
|
|
Widget build(BuildContext context){
|
2022-03-25 14:57:30 +00:00
|
|
|
return rightClickPop(
|
|
|
|
child: buildScreen(context),
|
|
|
|
context: context,
|
|
|
|
canPop: true,
|
|
|
|
);
|
2022-03-19 04:12:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Widget buildScreen(BuildContext context) {
|
2021-09-29 23:57:09 +00:00
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
2022-03-19 04:12:27 +00:00
|
|
|
title: const Text('收藏'),
|
2021-09-29 23:57:09 +00:00
|
|
|
),
|
|
|
|
body: ComicPager(
|
|
|
|
fetchPage: _fetch,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|