add comment
This commit is contained in:
parent
ba1e8d56d3
commit
3b5c358559
|
@ -1,7 +1,6 @@
|
||||||
PIKAPI - 漫画客户端
|
PIKAPI - 漫画客户端
|
||||||
========
|
========
|
||||||
[![license](https://img.shields.io/github/license/niuhuan/pikapi-flutter)](https://raw.githubusercontent.com/niuhuan/pikapi-flutter/master/LICENSE)
|
[![license](https://img.shields.io/github/license/niuhuan/pikapi-flutter)](https://raw.githubusercontent.com/niuhuan/pikapi-flutter/master/LICENSE)
|
||||||
[![releases](https://img.shields.io/badge/donwloads--v1.0-3.7k-green)](https://github.com/niuhuan/pikapi-flutter/releases)
|
|
||||||
[![releases](https://img.shields.io/github/v/release/niuhuan/pikapi-flutter)](https://github.com/niuhuan/pikapi-flutter/releases)
|
[![releases](https://img.shields.io/github/v/release/niuhuan/pikapi-flutter)](https://github.com/niuhuan/pikapi-flutter/releases)
|
||||||
[![downloads](https://img.shields.io/github/downloads/niuhuan/pikapi-flutter/total)](https://github.com/niuhuan/pikapi-flutter/releases)
|
[![downloads](https://img.shields.io/github/downloads/niuhuan/pikapi-flutter/total)](https://github.com/niuhuan/pikapi-flutter/releases)
|
||||||
|
|
||||||
|
@ -77,7 +76,7 @@ VPN->代理->分流, 这三个功能如果同时设置, 您会在您手机的VPN
|
||||||
### 开发环境准备
|
### 开发环境准备
|
||||||
|
|
||||||
- [golang](https://golang.org/) (1.16以上版本)
|
- [golang](https://golang.org/) (1.16以上版本)
|
||||||
- [flutter](https://flutter.dev/)
|
- [flutter](https://flutter.dev/) (桌面端使用2.2.3)
|
||||||
|
|
||||||
### 环境配置
|
### 环境配置
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ String errorType(String error) {
|
||||||
// Get "https://picaapi.picacomic.com/comics?c=%E5%85%A8%E5%BD%A9&s=ua&page=1": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
|
// Get "https://picaapi.picacomic.com/comics?c=%E5%85%A8%E5%BD%A9&s=ua&page=1": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
|
||||||
if (error.contains("timeout") ||
|
if (error.contains("timeout") ||
|
||||||
error.contains("connection refused") ||
|
error.contains("connection refused") ||
|
||||||
error.contains("deadline")) {
|
error.contains("deadline") ||
|
||||||
|
error.contains("connection abort")) {
|
||||||
return ERROR_TYPE_NETWORK;
|
return ERROR_TYPE_NETWORK;
|
||||||
}
|
}
|
||||||
if (error.contains("permission denied")) {
|
if (error.contains("permission denied")) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:pikapi/basic/Entities.dart';
|
import 'package:pikapi/basic/Entities.dart';
|
||||||
|
|
||||||
|
// 继续阅读按钮
|
||||||
class ContinueReadButton extends StatefulWidget {
|
class ContinueReadButton extends StatefulWidget {
|
||||||
final Future<ViewLog?> viewFuture;
|
final Future<ViewLog?> viewFuture;
|
||||||
final Function(int? epOrder, int? pictureRank) onChoose;
|
final Function(int? epOrder, int? pictureRank) onChoose;
|
||||||
|
|
|
@ -7,6 +7,7 @@ import 'package:pikapi/screens/components/Images.dart';
|
||||||
|
|
||||||
import 'ComicInfoCard.dart';
|
import 'ComicInfoCard.dart';
|
||||||
|
|
||||||
|
// 下载项
|
||||||
class DownloadInfoCard extends StatelessWidget {
|
class DownloadInfoCard extends StatelessWidget {
|
||||||
final DownloadComic task;
|
final DownloadComic task;
|
||||||
final bool downloading;
|
final bool downloading;
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'package:pikapi/basic/Entities.dart';
|
||||||
|
|
||||||
import 'Images.dart';
|
import 'Images.dart';
|
||||||
|
|
||||||
|
// 游戏信息卡
|
||||||
class GameTitleCard extends StatelessWidget {
|
class GameTitleCard extends StatelessWidget {
|
||||||
final GameInfo info;
|
final GameInfo info;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
// 非全屏FutureBuilder封装
|
||||||
class ItemBuilder<T> extends StatelessWidget {
|
class ItemBuilder<T> extends StatelessWidget {
|
||||||
final Future<T> future;
|
final Future<T> future;
|
||||||
final AsyncWidgetBuilder<T> successBuilder;
|
final AsyncWidgetBuilder<T> successBuilder;
|
||||||
|
|
|
@ -84,7 +84,7 @@ packages:
|
||||||
name: filesystem_picker
|
name: filesystem_picker
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0-nullsafety.0"
|
version: "2.0.0"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -188,7 +188,7 @@ packages:
|
||||||
name: path_drawing
|
name: path_drawing
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.5.1"
|
version: "0.5.1+1"
|
||||||
path_parsing:
|
path_parsing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -237,14 +237,14 @@ packages:
|
||||||
name: plugin_platform_interface
|
name: plugin_platform_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.1"
|
version: "2.0.2"
|
||||||
scrollable_positioned_list:
|
scrollable_positioned_list:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: scrollable_positioned_list
|
name: scrollable_positioned_list
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.0-nullsafety.0"
|
version: "0.2.2"
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
|
|
Loading…
Reference in New Issue