Closed sgehrman closed 2 months ago
check out the pubspec. It seems web is commented out?
https://github.com/benjamindean/flutter_vibration/blob/master/vibration/pubspec.yaml
https://github.com/benjamindean/flutter_vibration/issues/103
I added a lame hack that seems to work
if (!kIsWeb) {
Vibration.hasVibrator().then(
(value) => layerInteractionManager.deviceCanVibrate = value ?? false);
Vibration.hasCustomVibrationsSupport().then((value) =>
layerInteractionManager.deviceCanCustomVibrate = value ?? false);
}
Okay, good that you open a new issue in the vibration package because the issue is from that package and not from my package.
However, I released version 4.1.1
which also doesn't check Vibration.hasVibrator()
when you disable hitVibration
inside the helperline configs like below.
configs: ProImageEditorConfigs(
helperLines: const HelperLines(
hitVibration: !kIsWeb,
),
)
ok, thanks.
Package Version
4.0.8
Flutter Version
3.22
Platforms
Web
How to reproduce?
Logs (optional)
No response
Example code (optional)
Device Model (optional)
linux