40 lines
986 B
Dart
40 lines
986 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(
|
|
child: buildScreen(context),
|
|
context: context,
|
|
canPop: true,
|
|
);
|
|
}
|
|
|
|
Widget buildScreen(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('收藏'),
|
|
),
|
|
body: ComicPager(
|
|
fetchPage: _fetch,
|
|
),
|
|
);
|
|
}
|
|
}
|