mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
mod: specify list type
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -18,7 +18,7 @@ class PlaySpeedPage extends StatefulWidget {
|
||||
class _PlaySpeedPageState extends State<PlaySpeedPage> {
|
||||
late double playSpeedDefault;
|
||||
late double longPressSpeedDefault;
|
||||
late List speedList;
|
||||
late List<double> speedList;
|
||||
late bool enableAutoLongPressSpeed;
|
||||
List<Map<dynamic, dynamic>> sheetMenu = [
|
||||
{
|
||||
@@ -115,7 +115,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
|
||||
SmartDialog.showToast('该倍速已存在');
|
||||
} else {
|
||||
Get.back();
|
||||
speedList.add(customSpeed);
|
||||
speedList.add(customSpeed!);
|
||||
speedList.sort();
|
||||
await video.put(VideoBoxKey.speedsList, speedList);
|
||||
setState(() {});
|
||||
|
||||
@@ -597,7 +597,7 @@ List<SettingsModel> get styleSettings => [
|
||||
leading: const Icon(Icons.chrome_reader_mode_outlined),
|
||||
onTap: (setState) {
|
||||
final numberRegExp = RegExp(r'[\d\.]+');
|
||||
List springDescription =
|
||||
List<String> springDescription =
|
||||
GStorage.springDescription.map((i) => i.toString()).toList();
|
||||
showDialog(
|
||||
context: Get.context!,
|
||||
|
||||
Reference in New Issue
Block a user