mediakit upgrade

This commit is contained in:
Thibault Deckers 2025-03-14 18:53:36 +01:00
parent 9e33db5b4d
commit cf74e75d58
3 changed files with 11 additions and 10 deletions

View file

@ -14,7 +14,7 @@ extension ExtraSwipeAction on SwipeAction {
case SwipeAction.brightness: case SwipeAction.brightness:
return AvesApp.screenBrightness?.application ?? Future.value(1); return AvesApp.screenBrightness?.application ?? Future.value(1);
case SwipeAction.volume: case SwipeAction.volume:
return VolumeController().getVolume(); return VolumeController.instance.getVolume();
} }
} }
@ -23,7 +23,8 @@ extension ExtraSwipeAction on SwipeAction {
case SwipeAction.brightness: case SwipeAction.brightness:
await AvesApp.screenBrightness?.setApplicationScreenBrightness(value); await AvesApp.screenBrightness?.setApplicationScreenBrightness(value);
case SwipeAction.volume: case SwipeAction.volume:
VolumeController().setVolume(value, showSystemUI: false); VolumeController.instance.showSystemUI = false;
await VolumeController.instance.setVolume(value);
} }
} }
} }

View file

@ -791,8 +791,8 @@ packages:
dependency: "direct overridden" dependency: "direct overridden"
description: description:
path: media_kit path: media_kit
ref: "4d8c634c28d439384aab40b9d2edff83077f37c9" ref: d2145a50f68394096845915a28874341fbf5b3fe
resolved-ref: "4d8c634c28d439384aab40b9d2edff83077f37c9" resolved-ref: d2145a50f68394096845915a28874341fbf5b3fe
url: "https://github.com/media-kit/media-kit.git" url: "https://github.com/media-kit/media-kit.git"
source: git source: git
version: "1.1.11" version: "1.1.11"
@ -808,8 +808,8 @@ packages:
dependency: "direct overridden" dependency: "direct overridden"
description: description:
path: media_kit_video path: media_kit_video
ref: "4d8c634c28d439384aab40b9d2edff83077f37c9" ref: d2145a50f68394096845915a28874341fbf5b3fe
resolved-ref: "4d8c634c28d439384aab40b9d2edff83077f37c9" resolved-ref: d2145a50f68394096845915a28874341fbf5b3fe
url: "https://github.com/media-kit/media-kit.git" url: "https://github.com/media-kit/media-kit.git"
source: git source: git
version: "1.2.5" version: "1.2.5"
@ -1673,10 +1673,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: volume_controller name: volume_controller
sha256: c71d4c62631305df63b72da79089e078af2659649301807fa746088f365cb48e sha256: "30863a51338db47fe16f92902b1a6c4ee5e15c9287b46573d7c2eb6be1f197d2"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.8" version: "3.3.1"
wakelock_plus: wakelock_plus:
dependency: transitive dependency: transitive
description: description:

View file

@ -134,12 +134,12 @@ dependency_overrides:
media_kit: media_kit:
git: git:
url: https://github.com/media-kit/media-kit.git url: https://github.com/media-kit/media-kit.git
ref: 4d8c634c28d439384aab40b9d2edff83077f37c9 ref: d2145a50f68394096845915a28874341fbf5b3fe
path: media_kit path: media_kit
media_kit_video: media_kit_video:
git: git:
url: https://github.com/media-kit/media-kit.git url: https://github.com/media-kit/media-kit.git
ref: 4d8c634c28d439384aab40b9d2edff83077f37c9 ref: d2145a50f68394096845915a28874341fbf5b3fe
path: media_kit_video path: media_kit_video
dev_dependencies: dev_dependencies: