-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
137 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.5.8 | ||
v1.5.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
v1.5.9 | ||
- [x] 下载漫画中显示评论区(设置中寻找) | ||
|
||
v1.5.8 | ||
- [x] 解决历史记录图片不刷新的问题 | ||
- [x] 增加退出是增加提示的选项(设置中寻找) | ||
- [x] 增加退出是增加提示的选项(设置中寻找) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../Common.dart'; | ||
import '../Method.dart'; | ||
|
||
const _propertyName = "showCommentAtDownload"; | ||
|
||
late bool _showCommentAtDownload; | ||
|
||
Future initShowCommentAtDownload() async { | ||
_showCommentAtDownload = (await method.loadProperty(_propertyName, "false")) == "true"; | ||
} | ||
|
||
bool showCommentAtDownload() { | ||
return _showCommentAtDownload; | ||
} | ||
|
||
Future<void> _chooseShowCommentAtDownload(BuildContext context) async { | ||
String? result = | ||
await chooseListDialog<String>(context, "在下载显示评论区", ["是", "否"]); | ||
if (result != null) { | ||
var target = result == "是"; | ||
await method.saveProperty(_propertyName, "$target"); | ||
_showCommentAtDownload = target; | ||
} | ||
} | ||
|
||
Widget showCommentAtDownloadSetting() { | ||
return StatefulBuilder( | ||
builder: (BuildContext context, void Function(void Function()) setState) { | ||
return ListTile( | ||
title: const Text("在下载显示评论区"), | ||
subtitle: Text(_showCommentAtDownload ? "是" : "否"), | ||
onTap: () async { | ||
await _chooseShowCommentAtDownload(context); | ||
setState(() {}); | ||
}, | ||
); | ||
}, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters