mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Brightness and orientation only work on mobile
This commit is contained in:
parent
55065d5122
commit
510e78cc3a
1 changed files with 2 additions and 2 deletions
|
@ -642,9 +642,9 @@ class _ViewerState extends State<Viewer> with DisposableManagerMixin<Viewer> {
|
|||
bool _canZoom() => !_isDetailPaneActive;
|
||||
|
||||
late final disposables = [
|
||||
_ViewerBrightnessController(),
|
||||
if (platform_k.isMobile) _ViewerBrightnessController(),
|
||||
_ViewerSystemUiResetter(),
|
||||
if (Pref.inst().isViewerForceRotationOr(false))
|
||||
if (platform_k.isMobile && Pref.inst().isViewerForceRotationOr(false))
|
||||
_ViewerOrientationController(
|
||||
onChanged: _onOrientationChanged,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue