mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
12 lines
275 B
Dart
12 lines
275 B
Dart
import 'package:flutter/services.dart';
|
|
import 'storage.dart';
|
|
|
|
void feedBack() {
|
|
// 设置中是否开启
|
|
final bool enable = GStorage.setting
|
|
.get(SettingBoxKey.feedBackEnable, defaultValue: false) as bool;
|
|
if (enable) {
|
|
HapticFeedback.lightImpact();
|
|
}
|
|
}
|