Skip to content

Commit b03f629

Browse files
committed
chore(vibration): update package to v2.1.0 and resolve lint issues
- Updated the `vibration` package to version 2.1.0. - Resolved new lint issues introduced after the package update. - Updated `pubspec.yaml`, `CHANGELOG.md`, and adjusted related files.
1 parent cb6e3b7 commit b03f629

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 7.6.4
4+
- **CHORE**(vibration): Updated the `vibration` package to version `2.1.0`.
5+
- **FIX**(vibration): Resolved lint issues introduced by the package update.
6+
37
## 7.6.3
48
- **FIX**(grounded-design): Fixed an issue where aspect ratios were incorrectly selected regardless of the `canChangeAspectRatio` flag.
59

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
// You can update the following values to match your application needs.
4747
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
4848
minSdkVersion 21
49-
targetSdkVersion 34
49+
targetSdkVersion 35
5050
versionCode flutterVersionCode.toInteger()
5151
versionName flutterVersionName
5252
}

lib/features/main_editor/main_editor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@ class ProImageEditorState extends State<ProImageEditor>
410410

411411
if (helperLines.hitVibration) {
412412
Vibration.hasVibrator().then((hasVibrator) {
413-
layerInteractionManager.deviceCanVibrate = hasVibrator ?? false;
413+
layerInteractionManager.deviceCanVibrate = hasVibrator;
414414

415415
if (layerInteractionManager.deviceCanVibrate) {
416416
Vibration.hasCustomVibrationsSupport()
417417
.then((hasCustomVibrationsSupport) {
418418
layerInteractionManager.deviceCanCustomVibrate =
419-
hasCustomVibrationsSupport ?? false;
419+
hasCustomVibrationsSupport;
420420
});
421421
}
422422
});

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pro_image_editor
22
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
3-
version: 7.6.3
3+
version: 7.6.4
44
homepage: https://github.com/hm21/pro_image_editor/
55
repository: https://github.com/hm21/pro_image_editor/
66
issue_tracker: https://github.com/hm21/pro_image_editor/issues/
@@ -42,17 +42,17 @@ dependencies:
4242
http: ^1.2.2
4343
image: ^4.5.2
4444
mime: ^2.0.0
45-
vibration: ^2.0.1
45+
vibration: ^2.1.0
4646
web: ^1.1.0
4747

4848
dev_dependencies:
4949
flutter_test:
5050
sdk: flutter
5151

52-
build_runner: ^2.4.11
52+
build_runner: ^2.4.15
5353
flutter_lints: ^5.0.0
5454
import_sorter: ^4.6.0
55-
mockito: ^5.4.4
55+
mockito: ^5.4.5
5656
network_image_mock: ^2.0.0
5757

5858
flutter:

0 commit comments

Comments
 (0)