pikapika/lib/screens/RandomComicsScreen.dart

44 lines
1.1 KiB
Dart
Raw Permalink 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/Entities.dart';
import 'package:pikapika/basic/Method.dart';
import 'package:pikapika/basic/config/ListLayout.dart';
import 'package:pikapika/basic/config/ShadowCategories.dart';
2021-09-29 23:57:09 +00:00
2023-02-16 08:33:16 +00:00
import '../basic/config/Address.dart';
2021-09-29 23:57:09 +00:00
import 'components/ComicListBuilder.dart';
2023-02-16 08:33:16 +00:00
import 'components/Common.dart';
2022-03-19 04:12:27 +00:00
import 'components/RightClickPop.dart';
2021-09-29 23:57:09 +00:00
2021-10-26 11:04:23 +00:00
// 随机漫画页面
2021-09-29 23:57:09 +00:00
class RandomComicsScreen extends StatefulWidget {
2022-03-19 04:12:27 +00:00
const RandomComicsScreen({Key? key}) : super(key: key);
2021-09-29 23:57:09 +00:00
@override
State<StatefulWidget> createState() => _RandomComicsScreenState();
}
class _RandomComicsScreenState extends State<RandomComicsScreen> {
@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(
title: const Text('随机本子'),
2021-09-29 23:57:09 +00:00
actions: [
2023-04-07 01:56:11 +00:00
commonPopMenu(context),
addressPopMenu(context),
2021-09-29 23:57:09 +00:00
],
),
2022-07-12 07:28:47 +00:00
body: ComicListBuilder(method.randomComics),
2021-09-29 23:57:09 +00:00
);
}
}