mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 15:09:22 +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;
|
bool _canZoom() => !_isDetailPaneActive;
|
||||||
|
|
||||||
late final disposables = [
|
late final disposables = [
|
||||||
_ViewerBrightnessController(),
|
if (platform_k.isMobile) _ViewerBrightnessController(),
|
||||||
_ViewerSystemUiResetter(),
|
_ViewerSystemUiResetter(),
|
||||||
if (Pref.inst().isViewerForceRotationOr(false))
|
if (platform_k.isMobile && Pref.inst().isViewerForceRotationOr(false))
|
||||||
_ViewerOrientationController(
|
_ViewerOrientationController(
|
||||||
onChanged: _onOrientationChanged,
|
onChanged: _onOrientationChanged,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue