Skip to content

Commit

Permalink
🚀 v0.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Mar 27, 2023
1 parent 8a183d0 commit 7b10162
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/version.code.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.18
v0.1.19
10 changes: 6 additions & 4 deletions ci/version.info.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
计划
- [x] 下载? / / 高清画质? / / 通过点击进行上一页下一页?

v0.1.19
- [x] ✨ 使用web浏览器打开漫画时跳转到app处理(需要在设置中开启)
- [x] ♻️ 再次修复漫画看不了
- [x] ♻️ 一些文案的优化
- [x] ♻️ 签到功能(新用户签到后才能正常使用)

v0.1.18
- [x] ♻️ 修复漫画看不了
- [x] ♻️ 去除切换全屏抖动

v0.1.17
- [x] ♻️ 优化体验: 小说默认非透明背景色
- [x] 🐛 修复BUG: 小说订阅能用
22 changes: 22 additions & 0 deletions lib/screens/about_screen.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import 'dart:io';

import 'package:daisy/commons.dart';
import 'package:daisy/configs/android_display_mode.dart';
import 'package:daisy/configs/auto_clean.dart';
import 'package:daisy/configs/login.dart';
import 'package:daisy/configs/themes.dart';
import 'package:daisy/configs/versions.dart';
import 'package:daisy/ffi.dart';
import 'package:flutter/material.dart';

import '../configs/novel_reader_type.dart';
Expand Down Expand Up @@ -53,6 +55,8 @@ class _AboutState extends State<AboutScreen> {
const Divider(),
..._loginInfo(),
const Divider(),
_buildSign(),
const Divider(),
_buildCurrentVersion(),
const Divider(),
_buildNewestVersion(),
Expand Down Expand Up @@ -114,6 +118,24 @@ class _AboutState extends State<AboutScreen> {
);
}

Widget _buildSign() {
return ListTile(
title: const Text("签到"),
subtitle: const Text("新用户必须签到一次才能正常使用APP"),
onTap: () async {
try {
var taskIndex = await native.taskIndex();
if (!(taskIndex.daySignTask.status > 0)) {
await native.taskSign();
}
defaultToast(context, "签到成功");
} catch (e, s) {
defaultToast(context, "签到失败 : $e");
}
},
);
}

Widget _buildCurrentVersion() {
return Container(
padding: const EdgeInsets.fromLTRB(20, 10, 20, 10),
Expand Down
4 changes: 4 additions & 0 deletions lib/screens/components/content_error.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class ContentError extends StatelessWidget {
message = "啊哦, 被玩坏了";
break;
}
if ("$error".contains("暂时无法观看")) {
iconData = Icons.timer_off;
message = "请登录并签到一次";
}
return LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) {
print("$error");
Expand Down

0 comments on commit 7b10162

Please sign in to comment.