From 3b5c358559fa7e381b75bbc7e43b32e0296ca116 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Wed, 27 Oct 2021 16:14:35 +0800 Subject: [PATCH] add comment --- README.md | 3 +-- lib/basic/enum/ErrorTypes.dart | 3 ++- lib/screens/components/ContinueReadButton.dart | 1 + lib/screens/components/DownloadInfoCard.dart | 1 + lib/screens/components/GameTitleCard.dart | 1 + lib/screens/components/ItemBuilder.dart | 1 + pubspec.lock | 8 ++++---- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2e6c77b..f04151b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ PIKAPI - 漫画客户端 ======== [![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) [![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以上版本) -- [flutter](https://flutter.dev/) +- [flutter](https://flutter.dev/) (桌面端使用2.2.3) ### 环境配置 diff --git a/lib/basic/enum/ErrorTypes.dart b/lib/basic/enum/ErrorTypes.dart index b96011b..3b43a3a 100644 --- a/lib/basic/enum/ErrorTypes.dart +++ b/lib/basic/enum/ErrorTypes.dart @@ -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) if (error.contains("timeout") || error.contains("connection refused") || - error.contains("deadline")) { + error.contains("deadline") || + error.contains("connection abort")) { return ERROR_TYPE_NETWORK; } if (error.contains("permission denied")) { diff --git a/lib/screens/components/ContinueReadButton.dart b/lib/screens/components/ContinueReadButton.dart index f598e86..67965aa 100644 --- a/lib/screens/components/ContinueReadButton.dart +++ b/lib/screens/components/ContinueReadButton.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:pikapi/basic/Entities.dart'; +// 继续阅读按钮 class ContinueReadButton extends StatefulWidget { final Future viewFuture; final Function(int? epOrder, int? pictureRank) onChoose; diff --git a/lib/screens/components/DownloadInfoCard.dart b/lib/screens/components/DownloadInfoCard.dart index f153c26..7e844ae 100644 --- a/lib/screens/components/DownloadInfoCard.dart +++ b/lib/screens/components/DownloadInfoCard.dart @@ -7,6 +7,7 @@ import 'package:pikapi/screens/components/Images.dart'; import 'ComicInfoCard.dart'; +// 下载项 class DownloadInfoCard extends StatelessWidget { final DownloadComic task; final bool downloading; diff --git a/lib/screens/components/GameTitleCard.dart b/lib/screens/components/GameTitleCard.dart index dc87a84..3aad090 100644 --- a/lib/screens/components/GameTitleCard.dart +++ b/lib/screens/components/GameTitleCard.dart @@ -3,6 +3,7 @@ import 'package:pikapi/basic/Entities.dart'; import 'Images.dart'; +// 游戏信息卡 class GameTitleCard extends StatelessWidget { final GameInfo info; diff --git a/lib/screens/components/ItemBuilder.dart b/lib/screens/components/ItemBuilder.dart index cfa7000..a73563a 100644 --- a/lib/screens/components/ItemBuilder.dart +++ b/lib/screens/components/ItemBuilder.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; +// 非全屏FutureBuilder封装 class ItemBuilder extends StatelessWidget { final Future future; final AsyncWidgetBuilder successBuilder; diff --git a/pubspec.lock b/pubspec.lock index 440c29c..a89db6a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -84,7 +84,7 @@ packages: name: filesystem_picker url: "https://pub.dartlang.org" source: hosted - version: "2.0.0-nullsafety.0" + version: "2.0.0" flutter: dependency: "direct main" description: flutter @@ -188,7 +188,7 @@ packages: name: path_drawing url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.5.1+1" path_parsing: dependency: transitive description: @@ -237,14 +237,14 @@ packages: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" scrollable_positioned_list: dependency: "direct main" description: name: scrollable_positioned_list url: "https://pub.dartlang.org" source: hosted - version: "0.2.0-nullsafety.0" + version: "0.2.2" sky_engine: dependency: transitive description: flutter