Currently the setShowSystemUI method in VolumeController.swift is private and called only in set, raise and lower volume methods. This makes it impossible to enable back the volume system UI without actually showing it from Flutter.
I propose to add an updateShowSystemUI (or other name) method on Flutter side to call the setShowSystemUI method with the newly set FlutterVolumeController.showSystemUI.
Please @yosemiteyss tell me if you'd be able to work on that in a short time period or whether you'd accept PR for that.
Ideally, the FlutterVolumeController.showSystemUI would be a setter/method that calls native said straight away, but this would be a breaking change.
Currently the
setShowSystemUI
method inVolumeController.swift
is private and called only in set, raise and lower volume methods. This makes it impossible to enable back the volume system UI without actually showing it from Flutter.I propose to add an
updateShowSystemUI
(or other name) method on Flutter side to call thesetShowSystemUI
method with the newly setFlutterVolumeController.showSystemUI
.Please @yosemiteyss tell me if you'd be able to work on that in a short time period or whether you'd accept PR for that.
Ideally, the
FlutterVolumeController.showSystemUI
would be a setter/method that calls native said straight away, but this would be a breaking change.As for the Android side, I see it's not trivial - https://github.com/yosemiteyss/flutter_volume_controller/issues/58#issuecomment-1714949435 - so it could just do nothing there.