-
Notifications
You must be signed in to change notification settings - Fork 313
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
7 changed files
with
94 additions
and
42 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.4.9 | ||
v1.5.1 |
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,5 +1,6 @@ | ||
v1.4.9 | ||
v1.5.1 | ||
|
||
- [x] ✨ Display actors | ||
- [x] ♻️ Hidden comment's html tags | ||
- [x] ✨ Search from title | ||
- [x] ♻️ Network | ||
- [x] 🐛 Fix copy error | ||
- [x] ♻️ Title words setting | ||
- [x] ♻️ Login error tips |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/// 自动全屏 | ||
import 'dart:io'; | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
import '../basic/commons.dart'; | ||
import '../basic/methods.dart'; | ||
|
||
const _propertyName = "searchTitleWords"; | ||
late bool _searchTitleWords; | ||
|
||
Future<void> initSearchTitleWords() async { | ||
_searchTitleWords = | ||
(await methods.loadProperty(_propertyName)) == "true"; | ||
} | ||
|
||
bool currentSearchTitleWords() { | ||
return _searchTitleWords; | ||
} | ||
|
||
Future<void> _chooseSearchTitleWords(BuildContext context) async { | ||
String? result = await chooseListDialog<String>(context, | ||
title: "标题中的关键字", values: ["是", "否"]); | ||
if (result != null) { | ||
var target = result == "是"; | ||
await methods.saveProperty(_propertyName, "$target"); | ||
_searchTitleWords = target; | ||
} | ||
} | ||
|
||
Widget searchTitleWordsSetting() { | ||
return StatefulBuilder( | ||
builder: (BuildContext context, void Function(void Function()) setState) { | ||
return ListTile( | ||
title: const Text("标题中的关键字"), | ||
subtitle: Text(_searchTitleWords ? "是" : "否"), | ||
onTap: () async { | ||
await _chooseSearchTitleWords(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