-
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
5 changed files
with
74 additions
and
0 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,5 +1,6 @@ | ||
v1.7.8 | ||
- [x] ♻️ iOS可以使用FaceID进行解锁App | ||
- [x] ✨ 音量键快速翻阅下一章节(设置中开启) | ||
|
||
v1.7.7 | ||
- [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,31 @@ | ||
import 'package:flutter/material.dart'; | ||
import '../Method.dart'; | ||
|
||
const _propertyName = "volumeNextChapter"; | ||
|
||
late bool _volumeNextChapter; | ||
|
||
Future initVolumeNextChapter() async { | ||
_volumeNextChapter = | ||
(await method.loadProperty(_propertyName, "true")) == "true"; | ||
} | ||
|
||
bool volumeNextChapter() { | ||
return _volumeNextChapter; | ||
} | ||
|
||
Widget volumeNextChapterSetting() { | ||
return StatefulBuilder( | ||
builder: (BuildContext context, void Function(void Function()) setState) { | ||
return SwitchListTile( | ||
title: const Text("双击音量键下一章节"), | ||
value: _volumeNextChapter, | ||
onChanged: (value) async { | ||
await method.saveProperty(_propertyName, "$value"); | ||
_volumeNextChapter = value; | ||
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