Skip to content

Commit

Permalink
# 功能更新
Browse files Browse the repository at this point in the history
添加漫画界面切换主题效果,添加直接跳到指定章节功能
# 功能调整
现在漫画阅读界面滚动条在停止时才会跳转了
  • Loading branch information
deretame committed Dec 16, 2024
1 parent 2c99c72 commit 141ee74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions lib/network/http/http_request_build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:flutter/cupertino.dart';
import 'package:uuid/uuid.dart';
import 'package:zephyr/main.dart';

import 'http_request.dart';

String _getNonce() {
return const Uuid().v4().replaceAll('-', '');
}
Expand Down Expand Up @@ -135,8 +137,15 @@ Future<Map<String, dynamic>> request(
// && bikaSetting.account.isNotEmpty &&
// bikaSetting.password.isNotEmpty
) {
errorMessage += '\n登录状态失效,请重新登录哔咔';
// var temp = await login(bikaSetting.account, bikaSetting.password);
// errorMessage += '\n登录状态失效,请重新登录哔咔';
try {
var result = await login(bikaSetting.account, bikaSetting.password);

bikaSetting.setAuthorization(result['data']['token']);
} catch (e) {
// 抛出封装后的错误信息
throw Exception(errorMessage);
}
}

// 抛出封装后的错误信息
Expand Down
4 changes: 2 additions & 2 deletions lib/page/comments/widgets/comments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ class _CommentsWidgetState extends State<CommentsWidget> {
width: screenWidth * (48 / 50), // 设置宽度
child: Divider(
color: globalSetting.themeType
? Colors.grey.withOpacity(0.5)
: Colors.white.withOpacity(0.5),
? Colors.grey.withValues(alpha: 0.5)
: Colors.white.withValues(alpha: 0.5),
thickness: 1,
height: 10,
),
Expand Down

0 comments on commit 141ee74

Please sign in to comment.