From 86801dde731ba567f07230d6cdd2f243640ab6f0 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Wed, 14 Sep 2022 18:15:56 +0800 Subject: [PATCH] v1.5.11 --- LICENSE | 20 -------------------- README.md | 12 +++++++----- ci/version.code.txt | 2 +- ci/version.info.txt | 7 ++----- lib/screens/CategoriesScreen.dart | 21 ++++++++++++++++----- 5 files changed, 26 insertions(+), 36 deletions(-) delete mode 100644 LICENSE diff --git a/LICENSE b/LICENSE deleted file mode 100644 index cf95c45..0000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2021-? niuhuan - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 086607a..b60b4bd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ PIKAPIKA - 漫画客户端 =================== -[![license](https://img.shields.io/github/license/niuhuan/pikapika)](https://raw.githubusercontent.com/niuhuan/pikapika/master/LICENSE) [![releases](https://img.shields.io/github/v/release/niuhuan/pikapika)](https://github.com/niuhuan/pikapika/releases) -[![downloads](https://img.shields.io/github/downloads/niuhuan/pikapika/total)](https://github.com/niuhuan/pikapika/releases) - 美观易用且无广告的漫画客户端, 能运行在Windows/MacOS/Linux/Android/IOS中。 - 此APP内容存在限制级别内容(例如 露骨/血腥/暴力/吸毒),18岁以下的用户需在监护人陪同下使用,并请您在遵守当地法律法规。 @@ -93,16 +91,20 @@ VPN->代理->分流, 这三个功能如果同时设置, 您会在您手机的VPN 软件副本分发规则 -- 本软件仅供学习交流使用, 本软件或本软件的拓展, 个人或企业不可用于商业用途, 不可上架任何商店 -- 不要在任何其他 **二次元软件** 的 **聊天社区** 或 **开发社区** 内, 发布有关本软件的链接或信息 +- 本软件仅供学习交流使用, 本软件或本软件的拓展, 个人或企业不可用于商业用途, 不可上架任何商店, 在未经允许的情况下可以自用但不允许释放任何releases。 +- 不要在任何其他 **二次元软件** 的 **聊天社区** 或 **开发社区** 内, 发布有关本软件的链接或信息。 - 不要发送本软件安装包到 **任何社区内** , 不要将APK/IPA/ZIP/DMG发送包括任何聊天软件内的群聊功能。 分享本软件时, 在社区中使用Github中提供的Releases页面的链接, 或使用私聊窗口发送。 拓展包括但是不限于以下内容 - 使用本软件进行继续开发形成的软件。 -- 引入本软件部分内容为依赖/参考本软件/使用本软件内代码的同时, 包含本软件内一致内容或功能的软件。 +- 引入本软件部分内容为依赖/使用本软件内代码的同时包含本软件内一致内容或功能。 - 直接对本软件进行打包发布 +其他 + +- 对本仓库的fork需要保留本仓库的链接, 以引导用户在主要仓库进行讨论。 + 责任声明 - 作者仅分享编程技术, 不分发软件, 不对分发软件承担任何后果。 因传播或下载造成的法律问题或纠纷, 需行为人自行承担, 请您遵守当地法以及副本接受方(社区或人)所在地区的法律。 diff --git a/ci/version.code.txt b/ci/version.code.txt index 341724d..bbb1b25 100644 --- a/ci/version.code.txt +++ b/ci/version.code.txt @@ -1 +1 @@ -v1.5.10 +v1.5.11 diff --git a/ci/version.info.txt b/ci/version.info.txt index 0fd1f68..d263a69 100644 --- a/ci/version.info.txt +++ b/ci/version.info.txt @@ -1,6 +1,3 @@ -v1.5.10 +v1.5.11 -- [x] 升级flutter到3.3.0 -- [x] 可以设置分类列数 -- [x] 升级提示 -- [x] 静态加载动画 +- [x] 修复手动修改列数频道没有生效的问题 diff --git a/lib/screens/CategoriesScreen.dart b/lib/screens/CategoriesScreen.dart index 865c9c2..082f5a1 100644 --- a/lib/screens/CategoriesScreen.dart +++ b/lib/screens/CategoriesScreen.dart @@ -245,11 +245,22 @@ class _CategoriesScreenState extends State { } List _buildChannels() { - var size = MediaQuery.of(context).size; - var min = size.width < size.height ? size.width : size.height; - var blockSize = min / 3; - var imageSize = blockSize - 15; - var imageRs = imageSize / 10; + late double blockSize; + late double imageSize; + late double imageRs; + + if (categoriesColumnCount == 0) { + var size = MediaQuery.of(context).size; + var min = size.width < size.height ? size.width : size.height; + blockSize = min / 3; + } else { + var size = MediaQuery.of(context).size; + var min = size.width; + blockSize = min / categoriesColumnCount; + } + + imageSize = blockSize - 15; + imageRs = imageSize / 10; List list = [];