Skip to content
Snippets Groups Projects
Unverified Commit 1e8fc726 authored by martyfuhry's avatar martyfuhry Committed by GitHub
Browse files

Fixes hide controls when zoomed and shows them when not zoomed (#3366)

parent 7f35583c
No related merge requests found
......@@ -499,6 +499,7 @@ class GalleryViewerPage extends HookConsumerWidget {
PhotoViewGallery.builder(
scaleStateChangedCallback: (state) {
isZoomed.value = state != PhotoViewScaleState.initial;
ref.read(showControlsProvider.notifier).show = !isZoomed.value;
},
pageController: controller,
scrollPhysics: isZoomed.value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment