mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
一些改动
This commit is contained in:
parent
4a02b757bc
commit
a8942c2657
6 changed files with 792 additions and 854 deletions
|
|
@ -3,7 +3,7 @@ import 'package:just_audio/just_audio.dart';
|
|||
import 'package:logging/logging.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:vaani/features/player/providers/audiobook_player.dart'
|
||||
show audiobookPlayerProvider, simpleAudiobookPlayerProvider;
|
||||
show simpleAudiobookPlayerProvider;
|
||||
import 'package:vaani/features/sleep_timer/providers/sleep_timer_provider.dart'
|
||||
show sleepTimerProvider;
|
||||
import 'package:vaani/settings/app_settings_provider.dart'
|
||||
|
|
@ -132,12 +132,12 @@ class ShakeDetector extends _$ShakeDetector {
|
|||
case ShakeDetectedFeedback.vibrate:
|
||||
_logger.fine('Vibrating');
|
||||
|
||||
if (await Vibration.hasAmplitudeControl() ?? false) {
|
||||
if (await Vibration.hasAmplitudeControl()) {
|
||||
Vibration.vibrate(amplitude: 128, duration: 200);
|
||||
break;
|
||||
}
|
||||
|
||||
if (await Vibration.hasVibrator() ?? false) {
|
||||
if (await Vibration.hasVibrator()) {
|
||||
Vibration.vibrate();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ part of 'shake_detector.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$shakeDetectorHash() => r'2a380bab1d4021d05d2ae40fec964a5f33d3730c';
|
||||
String _$shakeDetectorHash() => r'd30daa94f3541bf4d7fa81d5f38dbb7c55c946f7';
|
||||
|
||||
/// See also [ShakeDetector].
|
||||
@ProviderFor(ShakeDetector)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue