mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import 'package:flutter/services.dart';
|
||||
import 'storage.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
|
||||
bool enableFeedback = GStorage.feedBackEnable;
|
||||
void feedBack() {
|
||||
// 设置中是否开启
|
||||
final bool enable = GStorage.setting
|
||||
.get(SettingBoxKey.feedBackEnable, defaultValue: false) as bool;
|
||||
if (enable) {
|
||||
if (enableFeedback) {
|
||||
HapticFeedback.lightImpact();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user